ROI Median Value Volumetric

Yes, if you want to have the image axis directions to be aligned with a particular physical axis directions then you need to resample the image.

You can create a volume with the desired axis directions (see example here) and use that as reference volume in “Resample scalar/vector/dwi volume” module.

However, it is probably even simpler to start everything with segmenting the jar. You can then get oriented bounding box of the jar fully automatically from Segment Statistics module. Example script to get the bounding box as ROI node is here. If you set this ROI as input to Crop volume module then you get a cropped, resampled volume that has its axes aligned with the axes of the jar.

1 Like