Page 1 of 1

worldSpace parameter does not seem to work in Papaya

PostPosted: Fri May 18, 2018 3:19 am
by vincenzoml
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"}};   

Re: worldSpace parameter does not seem to work in Papaya

PostPosted: Sun May 20, 2018 5:26 pm
by admin
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.

Re: worldSpace parameter does not seem to work in Papaya

PostPosted: Sat May 26, 2018 1:51 am
by vincenzoml
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.

Re: worldSpace parameter does not seem to work in Papaya

PostPosted: Sun Jun 03, 2018 1:54 pm
by admin
Hi. You can now set parameter "ignoreNiftiTransforms" which will prevent it from jumping into worldspace depending on the nifti transform.