Overview
Forum
Mango
iMango
Papaya
Multi-image Analysis GUI
Board Index
Register
Login
Logout
Settings

worldSpace parameter does not seem to work in Papaya

Questions or comments about Mango, webMango, iMango or Papaya.

Moderator: Michael Martinez

worldSpace parameter does not seem to work in Papaya

Postby vincenzoml » Fri May 18, 2018 3:19 am

Hello; I'm starting to use papaya and I'm very happy with it. However I would like to set worldSpace in a viewer, but it does not seem to do anything, if I either set it to true or false I always see the "world" icon and my image is rotated.

Code: Select all
   var params =
            { images: ["in.nii","out.nii"],
              kioskMode: false,
              showControls: false,
              showControlBar: false,             
              worldSpace: false,             
              "out.nii": { min: 0.999, max: 1.0001, lut: "Spectrum"}};   
vincenzoml
 
Posts: 2
Joined: Fri May 18, 2018 3:12 am

Re: worldSpace parameter does not seem to work in Papaya

Postby admin » Sun May 20, 2018 5:26 pm

If the NIFTI image transforms contains oblique rotations than it will not be able to parse out the orientation from the image transform. In this case, it forces it to be in world space. Otherwise, it can't make an accurate guess about the orientation when not in world space.

I could add something like a forceWorldSpace option, if you're ok without knowing orientation.
admin
Site Admin
 
Posts: 77
Joined: Fri Jul 06, 2007 8:18 am
Location: Research Imaging Center

Re: worldSpace parameter does not seem to work in Papaya

Postby vincenzoml » Sat May 26, 2018 1:51 am

Yes, I'm working on some image processing routines that require one to view the image in imagespace, actually, so if you add an option called "forceWorldCoordinates" I assume that when set to "false" it actually forces image coordinates. That would be good for me.
vincenzoml
 
Posts: 2
Joined: Fri May 18, 2018 3:12 am

Re: worldSpace parameter does not seem to work in Papaya

Postby admin » Sun Jun 03, 2018 1:54 pm

Hi. You can now set parameter "ignoreNiftiTransforms" which will prevent it from jumping into worldspace depending on the nifti transform.
admin
Site Admin
 
Posts: 77
Joined: Fri Jul 06, 2007 8:18 am
Location: Research Imaging Center


Return to Mango

Who is online

Users browsing this forum: No registered users and 1 guest

cron