Hi,
there is no MITK filter available for changing the pixel type directly.
You could use the ITK CastImageFilter [1] and use the AccessByItk macros
[2] to convert the MITK Image to ITK and then back to MITK. You can have
a look at Modules/ImageStatistics/mitkImageStatisticsCalculator.cpp
which is doing something similar.
[1] http://www.itk.org/Doxygen43/html/classitk_1_1CastImageFilter.html
[2]
http://docs.mitk.org/2013.12/group__Adaptor.html#ga67ad28ba2fe729db2f6e195dcf49c070
Best,
Sascha
On 02/21/2014 06:58 AM, 임정훈 wrote:
> Dear all
>
>
> I want to change pixel type of Image
>
> for example [int --> unsigned short]
>
> because of, some class doesn't work correctly in 'image of int type'.
>
> so, i want change pixel type right after I load an image.
>
>
> Does mitk provide any methods to achieve this? Or there is any
> examples I can follow?
>
>
> please help me~
>
> All bests
> Jeonghun Lim
------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users