Re: RGB to L*a*b* conversion
Posted by Duane and Julie on
URL: http://imagej.273.s1.nabble.com/RGB-to-L-a-b-Conversion-tp3703729p3703734.html
OK, the post below was rejected as well. If anyone besides Vlado would like the color space conversion plugin, let me know, or tell me how to post a link on the list.
Thanks,
duane
Vlado,
I've finished the plugin. It contains an inner class so that you didn't have to load my entire library as well.
Some notes:
This plugin converts between RGB, HSB, LAB and XYZ.
Multiple conversions lead to round off error.
All conversions are done in place.
The range of the color space is adjusted to fit an RGB image space.
HSB is normally 0..360, 0..1, 0..1
LAB is normally 0..100, -100..100, -100..100
XYZ is normally 0..100, 0..100, 0..100
All are scaled to fit 0..255
The planes are set according to the abbreviation.
HSB is H->R, S->G, B->B, etc.
No warranties, and limited testing has been done. Use at your own risk.
I've attached the source as a zip this time, to see if it will get through.
If anyone else finds this useful, use it. If you find bugs, let me know, I might be able to fix them. If anyone wants enhancements, let me know, I might be able to add them.
Cheers!
duane