Hi,

I'm afraid that at this point in mitkImage.cpp, one cannot distinguish between 
2D and 3D images with one slice. Long time ago we had a lot of discussions on 
this topic until it was decided, that all 2D images should be handled by MITK 
also as 3D images with a single slice. Both approaches have pros and cons and 
in your case, it is a con. So, to fix the bug, we would probably need to do it 
somewhere higher like in the filter or the segmentation utilities. Did you 
already create a bug report?

Best,
Stefan 

-----Original Message-----
From: Clarkson, Matt [mailto:m.clark...@ucl.ac.uk] 
Sent: Freitag, 22. Juli 2016 19:21
To: MITK
Subject: [mitk-users] Can't mask 2D images of 1 slice thickness

Hi All,

We are trying to use the Segmentation Utilities plugin to take a binary mask 
and multiply or apply it to an image. 

The mask is 1430 x 2320 x 1 unsigned short, so its a 3D image, but only 1 slice.
Same for the image.

So, when I select Segmentation Utilities -> Image Masking -> Mask Image, the 
segmentation fails.
The message box tells me to look in the log file, and nothing is printed.

The error is caused by mitkImage.cpp, line 874 on current MITK master.

So, basically, the mitkMaskImageFilter creates an output image that is 2D, when 
both inputs are 3D, and its downhill from there.
So, when all the MITK/ITK pipeline stuff tries to create the output, you end up 
sticking an ITK image, thats templated to 3D, into an output type thats 2D.

I’d also expect the same issue with 4D images with 1 timestep to end up as 3D 
images.

So, how would you expect to distinguish 3D images of 1 slice from 2D images, at 
this point (mitkImage.cpp, line 874) in the code?

Thanks

Matt

@Ana - try more than one slice if possible.

Matt

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic 
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning 
reports.http://sdm.link/zohodev2dev
_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. http://sdm.link/zohodev2dev
_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to