Hi Klaus,

I used the way you describe with RGBAPixel<unsigned char> and it works fine.
But I want to change the intensity of a color channel. E.g. multiply  
with 0.8 to reduce the intensity or set some single voxel into another  
color. When I cast the mitkImage to a itkImage I get a runtime error  
(wrong data format from some cryptic typedef to itkImage<TPixel,  
...>). When I read the details from application, I get  
"N3itk9RGBAPixelIhEE" as PixelType.
Is there an other way to cast mitk to itk image or change single voxels?

best regards

Frank



> Mon, 11 Oct 2010 22:39:17 +0200  -  Fritzsche Klaus  
> <[email protected]>:
> AW: [mitk-users] Creating mitk image with 4 channels

> Hi Frank,
>
> for displaying RGBA images you should use a single channel image  
> with pixel type itk::RGBAPixel<unsigned char>.  Images with four  
> channels are not recognized as RGBA. One reason for introducing the  
> channel concept originally was to allow having multiple images with  
> one similar geometry but different pixel types within one image.  
> However, this feature was never really used by anybody and most of  
> the MITK framework just ignores additional channels, defaulting to  
> the one channel with index 0.
>
> Vectorial information in MITK should be properly handled by defining  
> images with an mitk::PixelType that hold multiple values, such as  
> the itk::RGBAPixel does. The rendering mechanism so far only  
> supports RGBAPixels with internal datatype unsigned char.
>
> Best regards
> Klaus Fritzsche




-- 

Frank Blaschke

Department for Biometry and Medical Informatics
web:    http://www.med.uni-magdeburg.de/ibmi.html
phone:  +49 391 67 135 51
office: building 2 / room 212



------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to