List of Lab-digits

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
MV
Reply | Threaded
Open this post in threaded view
|

List of Lab-digits

MV
Hi all,
first of all I have to say that I am a beginner, just starting to explore the possibilities of ImageJ. After looking trough all those plugins, and testing several, there is one question coming up in my mind.

Is it possible to get the Lab-Digits from a ROI as a list?

E.g. Plugin "Color Profiler" gives me the RGB-Digits of a ROI, which I can save as a excel sheet. Now it would be very helpful for me to get a list of the Lab-Digits instead (or additional to) the RGB-Digits.

ImageJ itself, when using the plugin Color Inspector 3D, is able to switch between RGB, XYZ, Lab etc. It shows the 3D color space and it gives me the RGB-, XYZ, ... Lab-digits. Unfortunatly only for ONE choosen measure point and what I need, I think I already said it a few times, is a Lab-list alike the RGB-list.

The digits already exists, as shown on 3D Color Inspector. What I miss is the possibility to get those digits.

Is there any plugin, extension of a plugin, or combination of plugins making it possible to get a Lab-list?

Any help would be appreciated.

Thanks
M.Vogel
Reply | Threaded
Open this post in threaded view
|

Re: List of Lab-digits

Gluender-3
Just a quick and dirty approach without the need of writing a macro:

You may use the "Color Transformer" plugin to transform your
RGB-image to the corresponding Lab-stack. Then convert the stack to
an 8 bit stack (well this may lead to a loss of valuable
information). Finally select a region of interest and call "Color
Histogram" and finally copy the histogram values.


>Hi all,
>first of all I have to say that I am a beginner, just starting to explore
>the possibilities of ImageJ. After looking trough all those plugins, and
>testing several, there is one question coming up in my mind.
>
>Is it possible to get the Lab-Digits from a ROI as a list?
>
>E.g. Plugin "Color Profiler" gives me the RGB-Digits of a ROI, which I can
>save as a excel sheet. Now it would be very helpful for me to get a list of
>the Lab-Digits instead (or additional to) the RGB-Digits.
>
>ImageJ itself, when using the plugin Color Inspector 3D, is able to switch
>between RGB, XYZ, Lab etc. It shows the 3D color space and it gives me the
>RGB-, XYZ, ... Lab-digits. Unfortunatly only for ONE choosen measure point
>and what I need, I think I already said it a few times, is a Lab-list alike
>the RGB-list.
>
>The digits already exists, as shown on 3D Color Inspector. What I miss is
>the possibility to get those digits.
>
>Is there any plugin, extension of a plugin, or combination of plugins making
>it possible to get a Lab-list?
>
>Any help would be appreciated.
>
>Thanks
>M.Vogel

HTH
--

                   Herbie

          ------------------------
          <http://www.gluender.de>
MV
Reply | Threaded
Open this post in threaded view
|

Re: List of Lab-digits

MV
Thanks Gluender-3 for the quick answer.
But the loss of valuable information exactly would be the problem.
I need to analyse 24bit RGB pictures and converting into 8 bit stacks would influence the result too much.
It seems there is no plugin, or plugin combination doing what I need (Lab-List).
Does anyone have an idea how to write a macro for my problem? Unfortunatly, this is all new to me and I am, as usual, running out of time.

Reply | Threaded
Open this post in threaded view
|

Re: List of Lab-digits

Gluender-3
Second try:

Of course I was assuming 24 bit RGB images.

The _perhaps_ problematic reduction with my suggestion occurs later.

The mentioned plug-in correctly produces the Lab-version of 24 bit
RGB images as stacks consisting of the three 32bit Lab-excerpts.

Now, in order to obtain the desired values, I've poposed to use the
color histogram which in turn requires a stack of 8 bit Lab-excerpts.
If 8bit for "L" and 8bit for "a" and 8bit for "b" are sufficient for
your purposes, then my suggestion should result in what you want.

>Thanks Gluender-3 for the quick answer.
>But the loss of valuable information exactly would be the problem.
>I need to analyse 24bit RGB pictures and converting into 8 bit stacks would
>influence the result too much.
>It seems there is no plugin, or plugin combination doing what I need
>(Lab-List).
>Does anyone have an idea how to write a macro for my problem? Unfortunatly,
>this is all new to me and I am, as usual, running out of time.
>
>
>--
>View this message in context:
>http://n2.nabble.com/List-of-Lab-digits-tp2797232p2827309.html
>Sent from the ImageJ mailing list archive at Nabble.com.

HTH
--

                   Herbie

          ------------------------
          <http://www.gluender.de>
MV
Reply | Threaded
Open this post in threaded view
|

Re: List of Lab-digits

MV
Hmmm....should have read it more carefully. Already trying this method.
Now I have only one problem. How to convert the stack into an 8bit stack. As I said...beginner <smiley


Reply | Threaded
Open this post in threaded view
|

Re: List of Lab-digits

Gluender-3
>Hmmm....should have read it more carefully. Already trying this method.
>Now I have only one problem. How to convert the stack into an 8bit stack. As
>I said...beginner <smiley

With the Lab-stack frontmost select "Type > 8 bit" from the "Image"-menu.

Then, from the same menu, select "Color > Stack to RGB"

Finally make your ROI-selection in the resulting Pseudo-RGB image and
select "Tools > Color Histogram" from the "Analyze"-menu.

A description of ImageJ can be found here:
<http://rsb.info.nih.gov/ij/docs/index.html>

Best
--

                   Herbie

          ------------------------
          <http://www.gluender.de>
MV
Reply | Threaded
Open this post in threaded view
|

Re: List of Lab-digits

MV
Cool...creating a Pseudo-RGB-Image and the Pseudo-RGB-Digits are the Lab-digits.
Simple, but effective. Thats the way I like it.
A great thx to Gluender-3. You saved my day.
Only one thing I have to think now, about any loss of valueable information during converting the images.
But thats another story.

Of course many thx to all trying to help me out here...
Keep up the good...and fast...work.
Greetings