rordenlab / MRIcroGL

v1.2 GLSL volume rendering. Able to view NIfTI, DICOM, MGH, MHD, NRRD, AFNI format images.
https://www.nitrc.org/plugins/mwiki/index.php/mricrogl:MainPage
Other
204 stars 32 forks source link

Slice numbers all over the place in mosaic on Ubuntu 20.04 LTS #36

Closed PibeChorro closed 2 years ago

PibeChorro commented 2 years ago

Dear rordenlab, the the mosaic function is really cool and I like it even better, that I can script it in python. However, when I save the image (either using File > save Bitmap or using gl.savebmp) the slice numbers are all over the place, depending on the size of my window.

I am running MRIcroGL on a newly set up Ubuntu (20.04. LTS), placed it in /opt and created a mricorgl.desktop file (don't really think it makes a difference).

Best Vincent

neurolabusc commented 2 years ago

Does changing the Bitmap Zoom to 1 resolve your issue? You can set this in the preferences, or alternatively, you can add a line in your Python script gl.bmpzoom(1). You can also see if updating your graphics driver resolves the issue. For publications, I use a vector graphics tool to place text on figures (e.g. Affinity Designer, Illustrator, Inkscape).

PibeChorro commented 2 years ago

Unfortunately not. I tried to play around with it, but setting it to 1, sets the resolution down to 382x249 pixels (4x2 slices, smaller if less slices) and the numbers are not visible. It is pretty pixelated, but zooming in I see some white pixels that might be the slice numbers (but not where they are supposed to be).

I also plan to work with the image later in inkscape (labeling and so on), but if I the numbers are messed up, I cannot really use the image in inkscape.

P.S. I forgot to mention, that I have anaconda installed on my machine. Maybe some dependencies are messed up? I placed #!/usr/bin/python3.8 in the first line to change the interpreter to the default linux python3.8, but that didn't change anything. Not sure if this has an impact though (not an expert on python development)

neurolabusc commented 2 years ago

@PibeChorro can you check this version and see if it resolves your issue?

PibeChorro commented 2 years ago

Yes it does! Great thank you