Hi,
I've got the following problem. I need a time series were some timesteps are a
dataset complete filled with zeros and some have real image data. The first
image of the series nedds to be one with zeros. To create one I do the
following:
ImageType::Pointer itkImage = ImageType::New();
itkImage->SetRegions(region);
itkImage->SetOrigin(origin);
itkImage->SetSpacing(spacing);
itkImage->SetDirection(direction);
itkImage->Allocate();
itkImage->FillBuffer(0);
itkImage->Update();
zeroImage = mitk::Image::New();
mitk::CastToMitkImage(itkImage,zeroImage);
This zeroImage is than added to a mitk::Image containing all timesteps. The
initialization for itk and mitk image is done with a float PixelType. Somehow
this image is automatically turned into a binary image. That causes several
problems. One is the warning that the PixelType for binary images should be
(un)signed char. Furthermore the layer in the QmitkStdMultiWidget is turned
into red.. Most important is the fact that all following images in my
timeseries are turned into a binary images, too, even if they have different
values.
Has anyone an idea how I can create and image with zeros that is not
automatically defined as a binary image?
Thanks for your help in advance.
Regards,
Claudia
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users