Mouse Code

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

Mouse Code

David Webster
Could someone point me to the ImageJ code use to read mouse cursor
positions for doing selections.

Thanx - David Webster

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

Re: Mouse Code

Michael Schmid
Hi David,

have a look at ij.gui.ImageCanvas.mousePressed, mouseReleased, mouseMoved.
These handle the mouse input in images.

These calls are eventually passed to the Roi's mouse handling routines, such as
ij.gui.Roi.handleMouseDown, handleMouseUp, and ij.gui.PolygonRoi.handleMouseMove

Michael
________________________________________________________________
On Jun 11, 2012, at 18:01, David Webster wrote:

> Could someone point me to the ImageJ code use to read mouse cursor
> positions for doing selections.
>
> Thanx - David Webster

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

Re: Mouse Code

Ferez S. Nallaseth
In reply to this post by David Webster
David,

Joel Sheffield of the Department of Biology at Temple University had
clarified this for us and we have successfully used the application to the
quantification of many gels. You have to :

1. open your file (Tiff,Jpeg, etc...)/gel) (to be quantified)through the
Image J program.

2. Use the mouse to select the rectangular/circular selection tool.

3. Outline the band/ROI.

4. Select the 1st ROI by entering ctrl-1.

5. Use lateral arrows to move the cursor to the 2nd ROI (restricted to
   the same plane i.e. left to right but not L->R+Up<->down).

6. Select the 2nd ROI by entering ctrl-2.

7. Use lateral arrows to move the cursor to the 3rd ROI.

8. Select the 3rd ROI by entering ctrl-2 again.

9. Repeat this for 'n+2' ROIs.

10. Measure all 'n+2' outlines at once, by entering ctrl-3.

11. Select peak areas to be quantified (above background) with the
'straight,segmented or line tool'.

12. Quantify each peak with the wand tool from Image J.
Cautions: (1) size of peak above background, (2) application of the wand
tool just above demarcating line made by line tool and (3) density of
pixels beyond opaque affect measurements and increase
errorrates/artifacts).

13.First save the results (text and quantified peaks as graphs as jpg
files)in a folder.

14. Normalization to a ROI within the linear range of exposure/pixels on a
given file and repetition of quantifications are necessary.

15. Plots of the data as Excel graphs can be made by selection, copying
and pasting of the data from the folder in which they are saved.


16.Detailed instructions are available from the pdf of Image J Manual
(NIH) (imageJ revised user-guide.8.9.11)

Ferez S. Nallaseth, Ph.D.

Visiting Scientist

Center for Advanced Biotechnology and Medicine
Rutgers, The State University of New Jersey
679 Hoes Lane West
Piscataway, NJ 08854

Tel: 646 283 5163 (M)
Skype Address: fereznallaseth
Website:http://sites.google.com/site/nallasethfs




> Could someone point me to the ImageJ code use to read mouse cursor
> positions for doing selections.
>
> Thanx - David Webster
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>




Ferez S. Nallaseth, Ph.D.

Visiting Scientist

Center for Advanced Biotechnology and Medicine
Rutgers, The State University of New Jersey
679 Hoes Lane West
Piscataway, NJ 08854

Tel: 646 283 5163 (M)
Skype Address: fereznallaseth
Website:http://sites.google.com/site/nallasethfs
> Could someone point me to the ImageJ code use to read mouse cursor
> positions for doing selections.
>
> Thanx - David Webster
>
> --
> 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: Mouse Code

Ferez S. Nallaseth
In reply to this post by David Webster
David,

Should it be necessary please feel free to contact me.

Best,

Ferez


> Could someone point me to the ImageJ code use to read mouse cursor
> positions for doing selections.
>
> Thanx - David Webster
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>


Ferez S. Nallaseth, Ph.D.

Visiting Scientist

Center for Advanced Biotechnology and Medicine
Rutgers, The State University of New Jersey
679 Hoes Lane West
Piscataway, NJ 08854

Tel: 646 283 5163 (M)
Skype Address: fereznallaseth
Website:http://sites.google.com/site/nallasethfs

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

Re: Mouse Code

David Webster
In reply to this post by Ferez S. Nallaseth
All,

To clarify, I am interested in finding the code in the ImageJ API that does
this and that stores(?) a selections coordinates.

David Webster

On Mon, Jun 11, 2012 at 11:46 AM, Ferez S. Nallaseth <
[hidden email]> wrote:

> David,
>
> Joel Sheffield of the Department of Biology at Temple University had
> clarified this for us and we have successfully used the application to the
> quantification of many gels. You have to :
>
> 1. open your file (Tiff,Jpeg, etc...)/gel) (to be quantified)through the
> Image J program.
>
> 2. Use the mouse to select the rectangular/circular selection tool.
>
> 3. Outline the band/ROI.
>
> 4. Select the 1st ROI by entering ctrl-1.
>
> 5. Use lateral arrows to move the cursor to the 2nd ROI (restricted to
>   the same plane i.e. left to right but not L->R+Up<->down).
>
> 6. Select the 2nd ROI by entering ctrl-2.
>
> 7. Use lateral arrows to move the cursor to the 3rd ROI.
>
> 8. Select the 3rd ROI by entering ctrl-2 again.
>
> 9. Repeat this for 'n+2' ROIs.
>
> 10. Measure all 'n+2' outlines at once, by entering ctrl-3.
>
> 11. Select peak areas to be quantified (above background) with the
> 'straight,segmented or line tool'.
>
> 12. Quantify each peak with the wand tool from Image J.
> Cautions: (1) size of peak above background, (2) application of the wand
> tool just above demarcating line made by line tool and (3) density of
> pixels beyond opaque affect measurements and increase
> errorrates/artifacts).
>
> 13.First save the results (text and quantified peaks as graphs as jpg
> files)in a folder.
>
> 14. Normalization to a ROI within the linear range of exposure/pixels on a
> given file and repetition of quantifications are necessary.
>
> 15. Plots of the data as Excel graphs can be made by selection, copying
> and pasting of the data from the folder in which they are saved.
>
>
> 16.Detailed instructions are available from the pdf of Image J Manual
> (NIH) (imageJ revised user-guide.8.9.11)
>
> Ferez S. Nallaseth, Ph.D.
>
> Visiting Scientist
>
> Center for Advanced Biotechnology and Medicine
> Rutgers, The State University of New Jersey
> 679 Hoes Lane West
> Piscataway, NJ 08854
>
> Tel: 646 283 5163 (M)
> Skype Address: fereznallaseth
> Website:http://sites.google.com/site/nallasethfs
>
>
>
>
> > Could someone point me to the ImageJ code use to read mouse cursor
> > positions for doing selections.
> >
> > Thanx - David Webster
> >
> > --
> > ImageJ mailing list: http://imagej.nih.gov/ij/list.html
> >
>
>
>
>
> Ferez S. Nallaseth, Ph.D.
>
> Visiting Scientist
>
> Center for Advanced Biotechnology and Medicine
> Rutgers, The State University of New Jersey
> 679 Hoes Lane West
> Piscataway, NJ 08854
>
> Tel: 646 283 5163 (M)
> Skype Address: fereznallaseth
> Website:http://sites.google.com/site/nallasethfs
> > Could someone point me to the ImageJ code use to read mouse cursor
> > positions for doing selections.
> >
> > Thanx - David Webster
> >
> > --
> > 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