[Insight-users] TextureFeatures example
Hernan Ledesma
fledesma at inti.gob.ar
Tue Jul 24 16:48:34 EDT 2012
Hi,
How can I visualize the results?
I don't have access to T64.mha, I use
GeodesicActiveContourShapePriorImageFilterOutput4.mha. The slices that
output the extract filter (png files) are "blacks". See the following
code snippets
//para mostrar un slice
typedef unsigned char OutputPixelType;
typedef itk::Image<OutputPixelType,2> OutputImageType;
typedef unsigned char InputPixelType;
typedef itk::Image<InputPixelType,3> InputImageType;
typedef itk::ImageFileReader<InputImageType> ReaderMHAType;
typedef itk::ImageFileWriter<OutputImageType> WriterPNGType;
ReaderMHAType::Pointer readerMHA=ReaderMHAType::New();
WriterPNGType::Pointer writerPNG=WriterPNGType::New();
readerMHA->SetFileName("Energy0.mha");
writerPNG->SetFileName("slice.png");
typedef itk::ExtractImageFilter<InputImageType,OutputImageType>
FilterType;
FilterType::Pointer extractfilter=FilterType::New();
extractfilter->InPlaceOn();
extractfilter->SetDirectionCollapseToSubmatrix();
.....
.....
I think that the problem is here. What am I doing wrong?
More information about the Insight-users
mailing list