Hi dears, How can to make a Local Buffer from a big file and pass it to importimagefilter
const char * buffer typedef ImageType::PixelType PixelType; PixelType* pixelData = static_cast< PixelType*>( buffer ); const unsigned int totalNumberOfPixels= nx * ny; import->SetImportPointer(pixelData,totalNumberOfPixels,importFilterWillDeleteTheInputBuffer ); importer->Update(); return importer->GetOutput(); How can I generate Buffer when I have a big file for example 300MB and when I cast to pixel Data Just brings one char Thanks in advance
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Kitware offers ITK Training Courses, for more information visit: http://kitware.com/products/protraining.php Please keep messages on-topic and check the ITK FAQ at: http://www.itk.org/Wiki/ITK_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/insight-developers