NOTICE! This is a static HTML version of a legacy Fiji BugZilla bug.

The Fiji project now uses GitHub Issues for issue tracking.

Please file all new issues there.

Bug 1065 - Interpolation/render​ing lower quality in Mac OS compared to other OS
Interpolation/render​ing lower quality in Mac OS compared to other OS
Status: ASSIGNED
Product: ImageJ
Classification: Unclassified
Component: Common
unspecified
Macintosh Mac OS
: P5 enhancement
Assigned To: Curtis Rueden
Depends on:
Blocks:
 
Reported: 2015-05-07 04:07 CDT by Salim Kanoun
Modified: 2015-06-21 12:52 CDT
2 users (show)

See Also:


Attachments
Screen captures (373.74 KB, application/x-zip-compressed)
2015-05-07 04:07 CDT, Salim Kanoun

Description Salim Kanoun 2015-05-07 04:07:04 CDT
Created attachment 249
Screen captures

Hello everyone, 

I'm a ImageJ user, I wanted to report some differences about image rendering between operating systems.

I made a screen capture (see attachement) of a same PET image in Mac OS and Linux. You will notice that using the same image, using the same zoom the image quality is clearly different, the Mac OS display is far more "pixelized" than Linux display.


I never noticed any difference between Linux and Windows, the problem seems Mac OS specific. 

I think that the interpolation have a lower quality in Mac OS, I have activated the interpolation in all OS but in Mac OS it sounds like the interpolation is not as good as other OS.

I use ImageJ for medical imaging so image quality rendering is a real important parameter for me. Maybe some of you will be able to find out what is going on with Mac OS ?

Best regards,

Salim Kanoun
Comment 1 Jan Eglinger 2015-05-07 06:13:44 CDT
Hi Salim,

could you please check if the option "Interpolate zoomed images" is activated in 'Edit > Options > Appearance...' on your Windows PC? Deactivating this option should result in a rendering as you observe it on your Mac OSX system.

Hope that helps,
Jan
Comment 2 Salim Kanoun 2015-05-07 06:53:11 CDT
(In reply to Jan Eglinger from comment #1)
> Hi Salim,
> 
> could you please check if the option "Interpolate zoomed images" is
> activated in 'Edit > Options > Appearance...' on your Windows PC?
> Deactivating this option should result in a rendering as you observe it on
> your Mac OSX system.
> 
> Hope that helps,
> Jan

Dear Jan,

 

In both screen capture the "interpolate zoomed images" are activated (MacOS and Linux). 

 

The Interpolation is not completely broken in MacOS, when I activate and deactivate it, I see some changes but the interpolated image is far less quality in MacOS than other OS.

 

I work with Ilan Tal for the PET/CT viewer, we tried to change rendering parameter in his plugin, in Windows and Linux the display is really good but in MacOS we always have those pixelized images probably due to a lower interpolation. 

 

In our thought, the problem may be related to JAVA2D that seems to give lower quality in MacOS than other OS. In Mac OS documentation for developer it seems that Apple provides different API for rendering like Quartz but we wasn't able to use it since Mr Tal don't have a Apple computer to use those specific library (I may not understood all those technical stuff). 

 

However I wonder is those Mac specific rendering could be solved into ImageJ itself. It is really nice to have a cross platform software but having a lower image rendering for Mac users is annoying.

 

Best regards,

 

Salim
Comment 3 Curtis Rueden 2015-05-07 07:00:21 CDT
Which version of Java are you using? The bundled Java 1.6.0_24? If so, please try with Java 7 and/or Java 8, to see if that helps the situation.
Comment 4 Salim Kanoun 2015-05-07 07:12:43 CDT
(In reply to Curtis Rueden from comment #3)
> Which version of Java are you using? The bundled Java 1.6.0_24? If so,
> please try with Java 7 and/or Java 8, to see if that helps the situation.

Dear Curtis,

Sadly I don't own a Mac computer to do the test just now. 
I think that when I investigate the problem I had started FIJI with a command line to use the current version of JAVA and the display was still bad. 
I was weeks ago so I should verify my thought.

I will ask a colleague to bring her Mac computer for testing next Monday. If you have any other idea that could help you, you can make me a list of thing to test and could help you.

Best regards,

Salim
Comment 5 Salim Kanoun 2015-05-11 11:22:14 CDT
(In reply to Curtis Rueden from comment #3)
> Which version of Java are you using? The bundled Java 1.6.0_24? If so,
> please try with Java 7 and/or Java 8, to see if that helps the situation.

Dear Curtis,

I took all the Mac devices I can explore and I found that it might be depending on Mac OS version.

I had two MacBook Air

One is mid 2011 MacBook version, it is up to date and run Mac OS 10.10.3 and have the bad interpolation.

The other is a mid 2013 version and is running and old Mac OS 10.9.5 but this one shows a perfect display like Windows or Linux. 

I tried to run FIJI on the latest version of Java but even with the command I found in the FAQ (/Applications/ImageJ.app/Contents/MacOS/ImageJ-macosx --java-home \
  '/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home' ) FIJI always tell me that it use Java 1.6.

Is it the correct command to run with a specific java version ?

Best regards,

Salim
Comment 6 Curtis Rueden 2015-05-11 11:29:07 CDT
> I tried to run FIJI on the latest version of Java but even with the
> command I found in the FAQ
> (/Applications/ImageJ.app/Contents/MacOS/ImageJ-macosx --java-home \
> '/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home')
> FIJI always tell me that it use Java 1.6.
> 
> Is it the correct command to run with a specific java version ?

Yes, but you need to make sure the path goes to your actual Java 7 installation. It is very likely not 1.7.0_45 anymore at this point.

Just take a look:

$ ls /Library/Java/JavaVirtualMachines

And see what is in there. Then use the newest.

Or, you can using the following script:

   https://github.com/ctrueden/ctr-scripts/blob/master/java-info
Comment 7 Salim Kanoun 2015-05-11 11:39:53 CDT
Dear Curtis,

I removed the \ in the command and I ran FIJI in the 1.8, I think the \ is a error is probably because the command is splited in two lines.

However, with JAVA 1.8 the display is corrected, perfect display like other OS.

So now what is next ? The users will get the good display once ImageJ will be updated to JAVA 1.8 ? Is it going to come soon ? 

Best regards,

Salim

(In reply to Curtis Rueden from comment #6)
> > I tried to run FIJI on the latest version of Java but even with the
> > command I found in the FAQ
> > (/Applications/ImageJ.app/Contents/MacOS/ImageJ-macosx --java-home \
> > '/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home')
> > FIJI always tell me that it use Java 1.6.
> > 
> > Is it the correct command to run with a specific java version ?
> 
> Yes, but you need to make sure the path goes to your actual Java 7
> installation. It is very likely not 1.7.0_45 anymore at this point.
> 
> Just take a look:
> 
> $ ls /Library/Java/JavaVirtualMachines
> 
> And see what is in there. Then use the newest.
> 
> Or, you can using the following script:
> 
>    https://github.com/ctrueden/ctr-scripts/blob/master/java-info
Comment 8 Curtis Rueden 2015-05-11 15:14:34 CDT
> So now what is next ? The users will get the good display once ImageJ
> will be updated to JAVA 1.8 ? Is it going to come soon ? 

Yes, using Java 8 is the best solution.

We are planning to update the ImageJ downloads (including Fiji) to ship with Java 8 before the end of the year -- ideally much sooner, but the work is rather involved, and things already take longer than you expect...
Comment 9 Salim Kanoun 2015-06-21 12:52:38 CDT
(In reply to Curtis Rueden from comment #8)
> > So now what is next ? The users will get the good display once ImageJ
> > will be updated to JAVA 1.8 ? Is it going to come soon ? 
> 
> Yes, using Java 8 is the best solution.
> 
> We are planning to update the ImageJ downloads (including Fiji) to ship with
> Java 8 before the end of the year -- ideally much sooner, but the work is
> rather involved, and things already take longer than you expect...

Dear Curtis,

Just a small additional info,

The last update for Mac OS with java 8 solved the display problem, it is really nice.

I just noticed now that the same problem is shown with Windows 8, the interpolation seems completely broken in windows 8. 
However I know that the solution is already on the road, so it was just to  notify it.

best regards,

Salim