rotational MIP around a specified axis in physical coordinates system

Hi everyone.
I have a very simple question that maybe @zivy can answer (based on previous related topics).

I want to generate a rotational MIP around a specified axis with an image that has not an unit direction cosine matrix.
Following other topics on the forum (rotational around specified axis, Rotational MIP) I successfully do the rotational MIP around specified axis but the MIP is not on the proper axis of the image (meaning that the image stack is inclined).

How can I get image in the image coordinate using direction cosine matrix + origin? (easiest way. So I can get an image with unit direction cosine matrix and do all my transformation in this space).
Or
how I can used maximum intensity projection along a specified axis? (and Keep the physical coordinates system for the MIP).

thanks in advance

Hello @Stephan_Hahn1,

Not clear what is the desired output vs. what you obtain. Possibly provide some drawings/images to clarify?

If the goal is to easily generate rotational DRRs, possibly look to plastimatch, specifically its DRR command line tool, or to RTK which I think has similar functionality (not sure about this one).

Hello @zivy

yes my explanation is unclear but I finally solve my problem.

So the idea was to get a rotating MIP on an inclined image stack. Do the rotation around the image axis (using direction cosine matrix). The problem I was facing is that for the resampler, I used as OutputDIrection an unit direction cosine matrix, instead of the image direction. But with the image direction cosine, it is working.

Do you want me to put the full code solution?

Hello @Stephan_Hahn1,

Happy to hear that you were able to resolve your issue.

If your solution is not too long then it would be great if you posted the code here so that other developers will benefit from your solution.

1 Like