CIELAB space conversion


#1

I have an RGB image which I want to convert into CIELAB space. I can do that in ImageJ using the .jar file VIB_-3.0.1.jar. However, when I perform the same procedure in Java Eclipse, it doesn’t give me the same stack of images. Any work-around by which I can get image converted to CIELAB space?

Note: I was not able to find a standalone .java file which converts RGB to CIELAB space. To bypass this, I extracted the RGB_to_CIELAB.class file from VIB_-3.0.1.jar and decompiled it to get its .java file. Luckily, there isn’t any dependency apart from a CIELAB.java file which was taken care of. I have pinned a hyperlink for ‘CIELAB.java’.

https://github.com/fiji/VIB-lib/blob/master/src/main/java/color/CIELAB.java


#2

Just for completeness. Here are the converter plugins I know:

https://imagej.nih.gov/ij/plugins/color-transforms.html

https://imagej.nih.gov/ij/plugins/color-space-converter.html


#3

Unfortunately, these plugins don’t have RGB to CIELAB conversion.


#4

There are well tested color conversion and calibration plugins at

Jarek


#5

Nice. Works like a charm.

Many Thanks,
kbimage