Hello,<br><br>I am using "itkExtractImageFilter.h" and "itkRescaleIntensityImageFilter.h", in order to read a 3D volume and display a rescaled slice with values [0,255]. So far I displayed my results in a png image with these characteristics:<br>
<i><br> typedef short InputPixelType;<br> typedef unsigned char OutputPixelType;<br> const unsigned int Dimension = 3;<br><br> typedef itk::Image< InputPixelType, Dimension > InputImageType;<br>
typedef itk::Image< OutputPixelType, Dimension > OutputImageType;<br> typedef itk::ImageFileReader< InputImageType > ReaderType;<br><br> typedef unsigned char InputPixelType_extract;<br> typedef unsigned char OutputPixelType_extract;<br>
typedef itk::Image< InputPixelType_extract, 3 > InputImageType_extract;<br> typedef itk::Image< OutputPixelType_extract, 2 > OutputImageType_extract;</i><br><br>I want to read a 3D image of short format and get my result also in short format. I want to ask what type of file I must use, as a png image can't display images of short format. Also, what should be changed in the above declarations?<br>
<br>Thanks in advance<br><br><br><div style="visibility: hidden; left: -5000px; position: absolute; z-index: 9999; padding: 0px; margin-left: 0px; margin-top: 0px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 130%;" id="avg_ls_inline_popup">
</div>