I am trying to display N consecutive slices of a volume in separate slice views, with each of them showing progressively increasing slices. Something like below, without the green and yellow slices.
Is there a way to do this with Python?
Not directly the answer to your question, but the “Screen Capture” module is capable of producing an output as “lightbox (contact image) mode” see Link . This works nicely in stable and preview versions, see LungCTAnalyzer (PDF report) for an implementation.
This is precisely what I want! Thank you so much.