Print

Print


Hi Michael,

Currently there is no direct way to do this, although there might be in a later release. However, you can achieve this via the python shell, with something like this:

for o in overlayList:
    displayCtx.getOpts(o).transform = 'id'

There is more information on this in the API documentation:

https://users.fmrib.ox.ac.uk/~paulmc/fsleyes/apidoc/latest/fsleyes.displaycontext.volumeopts.html

Note that I am planning to refactor some of the FSLeyes internals related to this, hopefully making the API simpler. The transform property is not likely to change, however.

Cheers,

Paul

On 9 August 2017 at 22:31, Harms, Michael <[log in to unmask]> wrote:

 

Hi,

In ‘fslview’, if you have two NIFTIs with the same dimensions, but differing sforms, the viewer would overlay multiple NIFTIs based on the index dimension.

 

In ‘fsleyes’, NIFTIs seem to default to displaying in the “world coordinate” system, which makes a lot of sense.  Nonetheless, does there happen to be a display mode in ‘fsleyes’ that mimics the approach used in ‘fslview’ – i.e., overlay based on matrix indices, rather than mm position as encoded by the sform matrix?

 

Thanks,

-MH

 

-- 

Michael Harms, Ph.D.

-----------------------------------------------------------

Conte Center for the Neuroscience of Mental Disorders

Washington University School of Medicine

Department of Psychiatry, Box 8134

660 South Euclid Ave.                        Tel: 314-747-6173

St. Louis, MO  63110                                          Email: [log in to unmask]

 


The materials in this message are private and may contain Protected Healthcare Information or other information of a sensitive nature. If you are not the intended recipient, be advised that any unauthorized use, disclosure, copying or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this email in error, please immediately notify the sender via telephone or return mail.