[Insight-users] changing size in KB in gipl image
Luis Ibanez
luis.ibanez at kitware.com
Sun Jun 5 15:34:47 EDT 2011
Hi John
Tanks for sending the two images:
A) The reason for the size difference is that one
image contains 64 slices, while the other one
only contains one slice.
17416 bytes in z.gipl
1098496 bytes in MRIcrop-orig.gipl
Image sizes =
78 x 110 x 1 z.gipl
78 x 110 x 60 MRIcrop-orig.gipl
The slice in the file: z.gipl, corresponds to
slice 32 of the file: MRIcrop-orig.gipl
B) The slice in z.gipl was rescaled to fit the
range of [0:255] in intensity values.
The equivalent slice 32 from the file
MRIcrop-orig.gipl has 122 as the max
value (that pixel was rescaled to 255)
in the z.gipl image.
Are you using the RescaleIntensityImageFilter
anywhere in your pipeline ?
Thanks
Luis
--------------------------------------------------------------
On Sun, Jun 5, 2011 at 3:24 PM, john smith <mkitkinsightuser at gmail.com> wrote:
> OK, I have sent you the gipl files in a new email
>
> John
>
> 2011/6/5 Luis Ibanez <luis.ibanez at kitware.com>
>>
>> Hi John,
>>
>> Can you please email me the two images ?
>>
>> Thanks
>>
>>
>> Luis
>>
>> ---------------------------
>> On Sun, Jun 5, 2011 at 2:52 PM, john smith <mkitkinsightuser at gmail.com>
>> wrote:
>> > Well,
>> >
>> > I am trying to read a .gipl 3D image. Then by using the
>> > "itkExtractImageFilter.h" and "itkRescaleIntensityImageFilter.h", I
>> > extract
>> > a slice of this image and rescale the pixel values between [0,255]. I am
>> > using Qt to create my application and so far I firstly create a .png
>> > file of
>> > my slice image and then I display my png image in a Qpixmap.But when I
>> > use
>> > the itk-snap to display the same slice, I find difference between the
>> > two
>> > slices (itk-snap slice looks darker).I have tried to get my results in a
>> > gipl file with short format but still the problem remained the same. But
>> > I
>> > noticed that when I load the original image with itk-snap, in the image
>> > properties I get size in KB:1072, and when I load my created slice I get
>> > this property size in KB:16. Do you know what is wrong and how to solve
>> > this problem?
>> >
>> > Thanks in advance
>> >
>> >
>> > 2011/6/5 Luis Ibanez <luis.ibanez at kitware.com>
>> >>
>> >> Hi John,
>> >>
>> >> Are you talking about the size of the image file in KiloBytes ?
>> >>
>> >> Is that what you mean by KB:16 ?
>> >>
>> >>
>> >> Luis
>> >>
>> >>
>> >> --------------------------------
>> >> On Sun, Jun 5, 2011 at 5:47 AM, john smith <mkitkinsightuser at gmail.com>
>> >> wrote:
>> >> > Hello,
>> >> >
>> >> > In my program I have created a gipl image with size in KB:16. How
>> >> > could
>> >> > I
>> >> > set this size to size in KB:1072?
>> >> >
>> >> > Thanks
>> >> >
>> >> > _____________________________________
>> >> > 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://www.kitware.com/products/protraining.html
>> >> >
>> >> > 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://www.itk.org/mailman/listinfo/insight-users
>> >> >
>> >> >
>> >
>> >
>
>
More information about the Insight-users
mailing list