Draw an ROI around the object in ImageJ, and then scale it.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Draw an ROI around the object in ImageJ, and then scale it.

yccheok
Hello all,

I try to use ImageJ for a while and haven't figure out
how I can do this.

I have a small object inside a 120x120 image. Let says
the rectangle bounded around the small object is
25x25. I would like to scale up the 25x25 object to a
NEW 100x100 image.

May I know how I can do this in ImageJ?

Thank you.


               
____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs 
 
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Draw an ROI around the object in ImageJ, and then scale it.

yccheok
Sorry guys. I had figured out how to do that. Is
through Image->Duplicate.

Thanks!

--- Cheok Yan Cheng <[hidden email]> wrote:

> Hello all,
>
> I try to use ImageJ for a while and haven't figure
> out
> how I can do this.
>
> I have a small object inside a 120x120 image. Let
> says
> the rectangle bounded around the small object is
> 25x25. I would like to scale up the 25x25 object to
> a
> NEW 100x100 image.
>
> May I know how I can do this in ImageJ?
>
> Thank you.
>
>
>
> ____________________________________________________
> Start your day with Yahoo! - make it your home page
> http://www.yahoo.com/r/hs 
>  
>


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com 
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Draw an ROI around the object in ImageJ, and then scale it.

Albert-5
In reply to this post by yccheok
Within a plugin, the sequence of commands is something like this:

//check for any images open first ! Then make a processor which is the
part of the image inside the ROI. If there is no ROI then the whole
processor will be copied:
ImageProcessor ip =
WindowManager.getCurrentImage().getProcessor().crop();
//then make a new image:
ImagePlus imp = new ImagePlus("the roi", ip);
imp.show();

That's all.

Albert


Albert Cardona
Institute of Neuroinformatics     Tel : +41 1 635 3052
University/ETH Zurich             Fax : +41 1 635 3053
Winterthurerstrasse 190           acardona (at) ini phys ethz ch
Zurich 8057, Switzerland          www.ini.unizh.ch
Loading...