draw ROI with other color

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

draw ROI with other color

Miguel Cartagena
I would like to know as to draw ROI (straight lines for example) with other
colors (yellow for example) in images DICOM that are grayscale.
Reply | Threaded
Open this post in threaded view
|

Re: draw ROI with other color

Commandeur
Hi,

If you are talking about destructively drawing the ROI on
the picture with the ">Analyze>Label" option, then the
solution would be to convert the grayscale image to RGB
and under
">Edit>Options>Colors..." choose yellow as 'Foreground
Color'.

In ImageJ I would not know a way to draw the ROI non-
destructively in a separate layer (which would then
require that you save your picture in a format which
supports layers like tiff), though someone else might have
a suggestion on this.

Anyway, drawing colored lines in a grayscale picture
directly is not going to work, simply because it's
grayscale.

Greetings,
Edwin

> I would like to know as to draw ROI (straight lines for
example) with other
> colors (yellow for example) in images DICOM that are
grayscale.
>
Reply | Threaded
Open this post in threaded view
|

Re: draw ROI with other color

roberto aranibar
In reply to this post by Miguel Cartagena
I have also been trying to do this, and converting large images to RGB just
adds too much to the file size. There must be a way to add a few simple ROI
color codes into the file data without having to give every pixel in the
image an R,G, and B value.

If anyone knows of a solution that already exists, please help. This would
make ROIs much easier to see and keep track of in grayscale images. I think
it would be useful to many people.

Roberto


>From: Miguel Cartagena <[hidden email]>
>Reply-To: ImageJ Interest Group <[hidden email]>
>To: [hidden email]
>Subject: draw ROI with other color
>Date: Thu, 18 May 2006 13:38:30 -0300
>
>I would like to know as to draw ROI (straight lines for example) with other
>colors (yellow for example) in images DICOM that are grayscale.

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
Reply | Threaded
Open this post in threaded view
|

Re: draw ROI with other color

Duane and Julie
I routinely overlay color graphics on grayscale images.  Would that  
work for you?

It's just a custom canvas that you can draw on.  You'd have to draw  
the ROI's yourself, and decide for yourself which one gets what  
color, but it would work.  There isn't a direct ImageJ facility to do  
so at this time (that I know of) but I'm sure it could be added  
without much difficulty (famous last words :-)).  It also doesn't  
draw into the image: if you save the image, the ROI is not there.

    duane

On May 19, 2006, at 7:13 AM, roberto aranibar wrote:

> I have also been trying to do this, and converting large images to  
> RGB just adds too much to the file size. There must be a way to add  
> a few simple ROI color codes into the file data without having to  
> give every pixel in the image an R,G, and B value.
>
> If anyone knows of a solution that already exists, please help.  
> This would make ROIs much easier to see and keep track of in  
> grayscale images. I think it would be useful to many people.
>
> Roberto
>
>
>> From: Miguel Cartagena <[hidden email]>
>> Reply-To: ImageJ Interest Group <[hidden email]>
>> To: [hidden email]
>> Subject: draw ROI with other color
>> Date: Thu, 18 May 2006 13:38:30 -0300
>>
>> I would like to know as to draw ROI (straight lines for example)  
>> with other
>> colors (yellow for example) in images DICOM that are grayscale.
>
> _________________________________________________________________
> Express yourself instantly with MSN Messenger! Download today -  
> it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/ 
> direct/01/
Reply | Threaded
Open this post in threaded view
|

Re: draw ROI with other color

roberto aranibar
Duane,

Thanks for your response. I'm not sure of what you mean by the ROI not being
there when you save the image; I just want to make sure I will be able to
save the ROIs in the ROI manager as *.roi files. Its ok if they aren't
really drawn into the image. I just want to see regions that I have already
traced and added to the ROI manager highlighted in a very contrasted color
(e.g. red) without having to convert the image to RGB.

If you think it can help, how can I get this custom canvas that you
mentioned? I would like to be able to create the ImageJ facility to do this,
but I am fairly new to all of this - I still need to learn java and figure
out how to program functions such as this in ImageJ. If this function is not
too difficult to write though, and you are willing, I would be very grateful
if you implemented it.

Thanks,

Roberto


>From: Duane & Julie <[hidden email]>
>Reply-To: ImageJ Interest Group <[hidden email]>
>To: [hidden email]
>Subject: Re: draw ROI with other color
>Date: Fri, 19 May 2006 15:42:33 -0700
>
>I routinely overlay color graphics on grayscale images.  Would that  work
>for you?
>
>It's just a custom canvas that you can draw on.  You'd have to draw  the
>ROI's yourself, and decide for yourself which one gets what  color, but it
>would work.  There isn't a direct ImageJ facility to do  so at this time
>(that I know of) but I'm sure it could be added  without much difficulty
>(famous last words :-)).  It also doesn't  draw into the image: if you save
>the image, the ROI is not there.
>
>    duane
>
>On May 19, 2006, at 7:13 AM, roberto aranibar wrote:
>
>>I have also been trying to do this, and converting large images to  RGB
>>just adds too much to the file size. There must be a way to add  a few
>>simple ROI color codes into the file data without having to  give every
>>pixel in the image an R,G, and B value.
>>
>>If anyone knows of a solution that already exists, please help.  This
>>would make ROIs much easier to see and keep track of in  grayscale images.
>>I think it would be useful to many people.
>>
>>Roberto
>>
>>
>>>From: Miguel Cartagena <[hidden email]>
>>>Reply-To: ImageJ Interest Group <[hidden email]>
>>>To: [hidden email]
>>>Subject: draw ROI with other color
>>>Date: Thu, 18 May 2006 13:38:30 -0300
>>>
>>>I would like to know as to draw ROI (straight lines for example)  with
>>>other
>>>colors (yellow for example) in images DICOM that are grayscale.
>>
>>_________________________________________________________________
>>Express yourself instantly with MSN Messenger! Download today -  it's
>>FREE! http://messenger.msn.click-url.com/go/onm00200471ave/ direct/01/

_________________________________________________________________
Don’t just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/
Reply | Threaded
Open this post in threaded view
|

Re: draw ROI with other color

Harry Parker
Another alternative:

Back in the days of expensive memory we added color to grayscale images by manipulating lookup tables (LUTs). You can, for example, create a LUT where every value from 1 to 255 is itself, but 0 is colored red. ImageJ has a LUT editor for this.

Then you simply prepare your image by making the minimum intensity equal to 1.  Then make the foreground color Black (0) and draw with it.

roberto aranibar <[hidden email]> wrote: Duane,

Thanks for your response. I'm not sure of what you mean by the ROI not being
there when you save the image; I just want to make sure I will be able to
save the ROIs in the ROI manager as *.roi files. Its ok if they aren't
really drawn into the image. I just want to see regions that I have already
traced and added to the ROI manager highlighted in a very contrasted color
(e.g. red) without having to convert the image to RGB.
...

Thanks,

Roberto

>
>On May 19, 2006, at 7:13 AM, roberto aranibar wrote:
>
>>I have also been trying to do this, and converting large images to  RGB
>>just adds too much to the file size. There must be a way to add  a few
>>simple ROI color codes into the file data without having to  give every
>>pixel in the image an R,G, and B value.
>>
>>If anyone knows of a solution that already exists, please help.  This
>>would make ROIs much easier to see and keep track of in  grayscale images.
>>I think it would be useful to many people.
>>
>>Roberto
>>
>>
>>>From: Miguel Cartagena
>>>Reply-To: ImageJ Interest Group
>>>To: [hidden email]
>>>Subject: draw ROI with other color
>>>Date: Thu, 18 May 2006 13:38:30 -0300
>>>
>>>I would like to know as to draw ROI (straight lines for example)  with
>>>other
>>>colors (yellow for example) in images DICOM that are grayscale.



--  
Harry Parker  
Systems Engineer  
Dialog Imaging Systems, Inc.
               
---------------------------------
New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.
Reply | Threaded
Open this post in threaded view
|

Re: draw ROI with other color

Miguel Cartagena
Hi all (again) ..

Creating a LUT works, but I want to know how "prepare your image by making
the minimum intensity equal to 1" ..
tranks

Miguel


On 5/20/06, Harry Parker <[hidden email]> wrote:

>
> Another alternative:
>
> Back in the days of expensive memory we added color to grayscale images by
> manipulating lookup tables (LUTs). You can, for example, create a LUT where
> every value from 1 to 255 is itself, but 0 is colored red. ImageJ has a LUT
> editor for this.
>
> Then you simply prepare your image by making the minimum intensity equal
> to 1.  Then make the foreground color Black (0) and draw with it.
>
> roberto aranibar <[hidden email]> wrote: Duane,
>
> Thanks for your response. I'm not sure of what you mean by the ROI not
> being
> there when you save the image; I just want to make sure I will be able to
> save the ROIs in the ROI manager as *.roi files. Its ok if they aren't
> really drawn into the image. I just want to see regions that I have
> already
> traced and added to the ROI manager highlighted in a very contrasted color
> (e.g. red) without having to convert the image to RGB.
> ...
>
> Thanks,
>
> Roberto
>
> >
> >On May 19, 2006, at 7:13 AM, roberto aranibar wrote:
> >
> >>I have also been trying to do this, and converting large images to  RGB
> >>just adds too much to the file size. There must be a way to add  a few
> >>simple ROI color codes into the file data without having to  give every
> >>pixel in the image an R,G, and B value.
> >>
> >>If anyone knows of a solution that already exists, please help.  This
> >>would make ROIs much easier to see and keep track of in  grayscale
> images.
> >>I think it would be useful to many people.
> >>
> >>Roberto
> >>
> >>
> >>>From: Miguel Cartagena
> >>>Reply-To: ImageJ Interest Group
> >>>To: [hidden email]
> >>>Subject: draw ROI with other color
> >>>Date: Thu, 18 May 2006 13:38:30 -0300
> >>>
> >>>I would like to know as to draw ROI (straight lines for example)  with
> >>>other
> >>>colors (yellow for example) in images DICOM that are grayscale.
>
>
>
> --
> Harry Parker
> Systems Engineer
> Dialog Imaging Systems, Inc.
>
> ---------------------------------
> New Yahoo! Messenger with Voice. Call regular phones from your PC and save
> big.
>
Reply | Threaded
Open this post in threaded view
|

How to add the comments on the macro?

Liu, Dongfang (NIH/NIAID) [F]
Dear ALL,
 
How to add the comments on the macro?

Best regards
DON
-----Original Message-----
From: Miguel Cartagena [mailto:[hidden email]]
Sent: Thursday, July 20, 2006 9:12 AM
To: List IMAGEJ
Subject: Re: draw ROI with other color

Hi all (again) ..

Creating a LUT works, but I want to know how "prepare your image by
making the minimum intensity equal to 1" ..
tranks

Miguel


On 5/20/06, Harry Parker <[hidden email]> wrote:

>
> Another alternative:
>
> Back in the days of expensive memory we added color to grayscale
> images by manipulating lookup tables (LUTs). You can, for example,
> create a LUT where every value from 1 to 255 is itself, but 0 is
> colored red. ImageJ has a LUT editor for this.
>
> Then you simply prepare your image by making the minimum intensity
> equal to 1.  Then make the foreground color Black (0) and draw with
it.
>
> roberto aranibar <[hidden email]> wrote: Duane,
>
> Thanks for your response. I'm not sure of what you mean by the ROI not

> being there when you save the image; I just want to make sure I will
> be able to save the ROIs in the ROI manager as *.roi files. Its ok if
> they aren't really drawn into the image. I just want to see regions
> that I have already traced and added to the ROI manager highlighted in

> a very contrasted color (e.g. red) without having to convert the image

> to RGB.
> ...
>
> Thanks,
>
> Roberto
>
> >
> >On May 19, 2006, at 7:13 AM, roberto aranibar wrote:
> >
> >>I have also been trying to do this, and converting large images to  
> >>RGB just adds too much to the file size. There must be a way to add

> >>a few simple ROI color codes into the file data without having to  
> >>give every pixel in the image an R,G, and B value.
> >>
> >>If anyone knows of a solution that already exists, please help.  
> >>This would make ROIs much easier to see and keep track of in  
> >>grayscale
> images.
> >>I think it would be useful to many people.
> >>
> >>Roberto
> >>
> >>
> >>>From: Miguel Cartagena
> >>>Reply-To: ImageJ Interest Group
> >>>To: [hidden email]
> >>>Subject: draw ROI with other color
> >>>Date: Thu, 18 May 2006 13:38:30 -0300
> >>>
> >>>I would like to know as to draw ROI (straight lines for example)  
> >>>with other colors (yellow for example) in images DICOM that are
> >>>grayscale.
>
>
>
> --
> Harry Parker
> Systems Engineer
> Dialog Imaging Systems, Inc.
>
> ---------------------------------
> New Yahoo! Messenger with Voice. Call regular phones from your PC and
> save big.
>
Reply | Threaded
Open this post in threaded view
|

Antwort: How to add the comments on the macro?

Joachim Wesner
Hi,

I´m not quite sure what you are refering to:

1) If you really need comments inside the macro text you can use "//"
somewhere on a line to make the rest of the line a comment. This is
compatible to the Java programming language! Pairs of "/* .... */" might
work to, but I never tried it!

2) If you mean to add a visible "comment" to an image inside a macro, i.e
paint text on the image, this can be done with the Text tool. Use the macro
recorder
to find out what the exact code is you need to put in your macro file

3) Some image formats (i.e. tiff) allow extra invisible data fields added
to images, probably there is a plugin that can access these

Hope this helps

JW



                                                                                                                                       
                      "Liu, Dongfang                                                                                                  
                      (NIH/NIAID) [F]"         An:      [hidden email]                                                            
                      <[hidden email]         Kopie:   (Blindkopie: Joachim Wesner/DEWET/LMSCentral/Leica)                            
                      H.GOV>                   Thema:   How to add the comments on the macro?                                          
                      Gesendet von:                                                                                                    
                      ImageJ Interest                                                                                                  
                      Group                                                                                                            
                      <[hidden email]                                                                                                
                      .GOV>                                                                                                            
                                                                                                                                       
                                                                                                                                       
                      20.07.2006 15:35                                                                                                
                      Bitte antworten                                                                                                  
                      an ImageJ                                                                                                        
                      Interest Group                                                                                                  
                                                                                                                                       




Dear ALL,

How to add the comments on the macro?

Best regards
DON
-----Original Message-----
From: Miguel Cartagena [mailto:[hidden email]]
Sent: Thursday, July 20, 2006 9:12 AM
To: List IMAGEJ
Subject: Re: draw ROI with other color

Hi all (again) ..

Creating a LUT works, but I want to know how "prepare your image by
making the minimum intensity equal to 1" ..
tranks

Miguel


On 5/20/06, Harry Parker <[hidden email]> wrote:

>
> Another alternative:
>
> Back in the days of expensive memory we added color to grayscale
> images by manipulating lookup tables (LUTs). You can, for example,
> create a LUT where every value from 1 to 255 is itself, but 0 is
> colored red. ImageJ has a LUT editor for this.
>
> Then you simply prepare your image by making the minimum intensity
> equal to 1.  Then make the foreground color Black (0) and draw with
it.
>
> roberto aranibar <[hidden email]> wrote: Duane,
>
> Thanks for your response. I'm not sure of what you mean by the ROI not

> being there when you save the image; I just want to make sure I will
> be able to save the ROIs in the ROI manager as *.roi files. Its ok if
> they aren't really drawn into the image. I just want to see regions
> that I have already traced and added to the ROI manager highlighted in

> a very contrasted color (e.g. red) without having to convert the image

> to RGB.
> ...
>
> Thanks,
>
> Roberto
>
> >
> >On May 19, 2006, at 7:13 AM, roberto aranibar wrote:
> >
> >>I have also been trying to do this, and converting large images to
> >>RGB just adds too much to the file size. There must be a way to add

> >>a few simple ROI color codes into the file data without having to
> >>give every pixel in the image an R,G, and B value.
> >>
> >>If anyone knows of a solution that already exists, please help.
> >>This would make ROIs much easier to see and keep track of in
> >>grayscale
> images.
> >>I think it would be useful to many people.
> >>
> >>Roberto
> >>
> >>
> >>>From: Miguel Cartagena
> >>>Reply-To: ImageJ Interest Group
> >>>To: [hidden email]
> >>>Subject: draw ROI with other color
> >>>Date: Thu, 18 May 2006 13:38:30 -0300
> >>>
> >>>I would like to know as to draw ROI (straight lines for example)
> >>>with other colors (yellow for example) in images DICOM that are
> >>>grayscale.
>
>
>
> --
> Harry Parker
> Systems Engineer
> Dialog Imaging Systems, Inc.
>
> ---------------------------------
> New Yahoo! Messenger with Voice. Call regular phones from your PC and
> save big.
>



______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________