[vtkusers] binary image format

oka oka at bpe.es.osaka-u.ac.jp
Fri Mar 23 03:26:31 EDT 2012


Dear Zukic,

Thank you for your reply.
I think shiftscale will shift the pixel value
for example,  100 to 200 by SetShift(100).
Greyscale image has 0 and 1 values
and I want to change 1 to 255 remaining
0 unchanged.
I am not sure how to treat such greyscale
image file.

Best regards,

Oka

> I guess you need to normalize image values then.
> http://www.vtk.org/Wiki/VTK/Examples/Images/ImageShiftScale
> 
> On Thu, Mar 22, 2012 at 11:57, oka <oka at bpe.es.osaka-u.ac.jp> wrote:
> 
> > Dear vtk users,
> >
> > How can I read binary image format file ?
> > I use MetaIO file, mhd and raw files.
> > How can I describe mhd header for binary image format file
> > (0-1 values only) ?  If 0 and 255 are used
> > for unsigned char type, it is all right, but 0-1
> > image shows a only black image.
> >
> > Best regards,
> >
> > Oka
> > --
> > oka <oka at bpe.es.osaka-u.ac.jp>
> >
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the VTK FAQ at:
> > http://www.vtk.org/Wiki/VTK_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
> >

-- 
oka <oka at bpe.es.osaka-u.ac.jp>




More information about the vtkusers mailing list