manipulating ROI

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

manipulating ROI

rabih assaf-2
Hello,
HOw to extract a ROI withoud the surrounding regions? (the duplicate don't do the work)
thanks in advance    
--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: manipulating ROI

Jan Eglinger
Hi Rabih,

you can copy the ROI (Ctrl-C) and open a new image with the internal
clipboard (File > New > Internal Clipboard).
Here's the macro code:

   run("Copy");
   run("Internal Clipboard");

Hope that helps,
Jan


On 25.03.2015 15:46, rabih assaf wrote:
> Hello,
> HOw to extract a ROI withoud the surrounding regions? (the duplicate don't do the work)
> thanks in advance  

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: manipulating ROI

Michael Schmid
In reply to this post by rabih assaf-2
On Mar 25, 2015, at 15:46, rabih assaf wrote:

> HOw to extract a ROI withoud the surrounding regions? (the duplicate don't do the work)
> thanks in advance

Hi Rabih,

if you want extract only the contents of a non-rectangular selection, you can use

(1) Duplicate and Clear Outside; then the outside becomes the background color. You can define the beckground color when you double-cklick the Eyedropper tool, click the "Reverse Foreground&Background" double arrow, select the color and reverse foreground&background again. Also the small symbol with black&white rectangles at bottom right can be of use.

(2) Duplicate, Edit>Selection>Make Inverse and Process>Math>Set to the desired backgorund value, or

(3) Copy and Paste into an new window.

Michael

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: manipulating ROI

rabih assaf-2
Thanks Michael it was very helpful, but i also want to eliminate the background. I want to have only the ROI in the image without any backgroound. Is it possible to do in imagej?
thank you

> Date: Wed, 25 Mar 2015 16:05:59 +0100
> From: [hidden email]
> Subject: Re: manipulating ROI
> To: [hidden email]
>
> On Mar 25, 2015, at 15:46, rabih assaf wrote:
>
> > HOw to extract a ROI withoud the surrounding regions? (the duplicate don't do the work)
> > thanks in advance
>
> Hi Rabih,
>
> if you want extract only the contents of a non-rectangular selection, you can use
>
> (1) Duplicate and Clear Outside; then the outside becomes the background color. You can define the beckground color when you double-cklick the Eyedropper tool, click the "Reverse Foreground&Background" double arrow, select the color and reverse foreground&background again. Also the small symbol with black&white rectangles at bottom right can be of use.
>
> (2) Duplicate, Edit>Selection>Make Inverse and Process>Math>Set to the desired backgorund value, or
>
> (3) Copy and Paste into an new window.
>
> Michael
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
     
--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: manipulating ROI

Michael Schmid
Hi Rabih,

ImageJ does not support layers similar to Photoshop, where everything outside the object can be in an undefined (transparent) state.

If you have a 32-bit (float) image, with Process>Math>Set you can set the outside to NaN (not a number); then this area will be ignored for measurements. As a downside, except for 'Measure', most ImageJ functions including most image filters won't work properly if the image contains NaN values.
So it would be easier to simply keep the selection and use the selection of you want to do measurements (if you store the image as TIFF or ZIP, the selection will be stored with it).

Michael
________________________________________________________________
On Mar 25, 2015, at 17:29, rabih assaf wrote:

> Thanks Michael it was very helpful, but i also want to eliminate the background. I want to have only the ROI in the image without any backgroound. Is it possible to do in imagej?
> thank you
>
>> Date: Wed, 25 Mar 2015 16:05:59 +0100
>> From: [hidden email]
>> Subject: Re: manipulating ROI
>> To: [hidden email]
>>
>> On Mar 25, 2015, at 15:46, rabih assaf wrote:
>>
>>> HOw to extract a ROI withoud the surrounding regions? (the duplicate don't do the work)
>>> thanks in advance
>>
>> Hi Rabih,
>>
>> if you want extract only the contents of a non-rectangular selection, you can use
>>
>> (1) Duplicate and Clear Outside; then the outside becomes the background color. You can define the beckground color when you double-cklick the Eyedropper tool, click the "Reverse Foreground&Background" double arrow, select the color and reverse foreground&background again. Also the small symbol with black&white rectangles at bottom right can be of use.
>>
>> (2) Duplicate, Edit>Selection>Make Inverse and Process>Math>Set to the desired backgorund value, or
>>
>> (3) Copy and Paste into an new window.
>>
>> Michael
>>
>> --
>> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>    
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html