Does anyone know where I can find a java example of using the imageJ library
to display a .tif image? Is it possible to use this library to display them within your own applications or must you use the imagej interface always? Thanks, Jack |
Hi,
maybe I´m totally mistaken, but loading a TIFF into ImageJ puts it in an "Image Processor" which already has a large amount of functionality, so I assume you would end up with importing a large part of ImageJ anyhow. If you "only" want to read and display a TIFF in Java, what about this library: (just looked it up, did not myself test it) http://www.lizardworks.com/java.html You can use ImageJ resp. it´s library in a Java applet AFAIK, there should be an example somewhere Mit freundlichen Grüßen / Best regards Joachim Wesner Leica Microsystems CMS GmbH | GmbH mit Sitz in Wetzlar | Amtsgericht Wetzlar HRB 2432 Geschäftsführer: Dr. Stefan Traeger | Dr. Wolf-Otto Reuter | Dr. David Roy Martyr | Colin Davis Jack Breon <appdevelopment@W ORLDNET.ATT.NET> An Gesendet von: [hidden email] ImageJ Interest Kopie Group <[hidden email]. Thema GOV> Java displaying TIF 27.01.2008 00:12 Bitte antworten an ImageJ Interest Group <[hidden email]. GOV> Does anyone know where I can find a java example of using the imageJ library to display a .tif image? Is it possible to use this library to display them within your own applications or must you use the imagej interface always? Thanks, Jack ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ |
In reply to this post by Jack Breon
To read a TIFF file, several options to suggest:
You might use ij.io.FileOpener to create an ImagePlus, and then use the BufferedImageCreator class from the imageio plugin at http://ij-plugins.sourceforge.net/plugins/imageio/index.html. Or use the javax.imageio package. Here's an example: http://www.exampledepot.com/egs/javax.imageio/BasicImageRead.html |
In reply to this post by Jack Breon
Here is a Java program that uses ImageJ as a library to display a
TIFF file: import ij.*; import java.awt.*; public class Test { public static void main(String[] args) { ImagePlus imp = IJ.openImage(args[0]); imp.show(); } } It also opens and displays any other format supported by ImageJ, including JPEG, PNG, GIF, BMP, PGM, DICOM and FITS. I compiled and ran it using javac -cp ij.jar Test.java java -cp ij.jar:. Test blobs.tif which assumes ij.jar and blobs.tif are in the current directory. To get an AWT image use ImagePlus imp = IJ.openImage(args[0]); Image img = imp.getImage(); Note that ImageJ only opens uncompressed TIFFs or LZW compressed TIFFs. -wayne On Jan 26, 2008, at 6:12 PM, Jack Breon wrote: > Does anyone know where I can find a java example of using the > imageJ library > to display a .tif image? > > Is it possible to use this library to display them within your own > applications or must you use the imagej interface always? > > > > Thanks, > > Jack |
Hello everybody!
I have following questions: I have microscopic picture of cells. I want to measure cell's diameter. I wonder, what is the best way to do that: The line of already measured cell must be seen, even i measure another cell. This is not possible with tool Straight line selection... Then, it is possible that result are immediate shown without pressing all the time Measure command?? The task is simple, so I hope is there any good solution...or some good plug-in exists for that... Thank you for your time and answers! Marko |
Just hit Ctrl-D to draw the line on the image.
Just hit Ctrl-M to measure the line. What could be simpler? -- Harry Parker Senior Systems Engineer Digital Imaging Systems, Inc. ----- Original Message ---- From: Marko Usaj <[hidden email]> To: [hidden email] Sent: Monday, January 28, 2008 5:15:46 AM Subject: measure length of lines Hello everybody! I have following questions: I have microscopic picture of cells. I want to measure cell's diameter. I wonder, what is the best way to do that: The line of already measured cell must be seen, even i measure another cell. This is not possible with tool Straight line selection... Then, it is possible that result are immediate shown without pressing all the time Measure command?? The task is simple, so I hope is there any good solution...or some good plug-in exists for that... Thank you for your time and answers! Marko ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ |
In reply to this post by Marko Usaj
Here is one way to do this:
1. Open the ROI Manager. 3. Click "Show All". 4. For each cell, create a selection and press "t" (Edit>Selection>Add to Manager). 5. Click "Measure" in the ROI Manager. -wayne On Jan 28, 2008, at 5:15 AM, Marko Usaj wrote: > Hello everybody! > > I have following questions: > > I have microscopic picture of cells. I want to measure cell's diameter. > I wonder, what is the best way to do that: > > The line of already measured cell must be seen, even i measure another > cell. This is not possible with tool Straight line selection... > > Then, it is possible that result are immediate shown without pressing > all the time Measure command?? > > The task is simple, so I hope is there any good solution...or some good > plug-in exists for that... > > Thank you for your time and answers! > > Marko > |
In reply to this post by Harry Parker
Hi Dear All,
I have a simple question for experts like you (it's difficult so far for me) I have a picture in not rectangular or square form. When I open it and convert it to binary then measure the porosity it takes the area of whole picture (picture itself+plus white background that fills the rectangular. Is there any way to get porosity measurement for irregular shapes excluding the background? Thanks in advance... Omer N. CORA NSF I/UCR Center for Precision Forming Richmond,VA ____________________________________________________________________________________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping |
In reply to this post by Wayne Rasband
Ok, but the lines do not stay visible....?
-----Original Message----- From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of Wayne Rasband Sent: Monday, January 28, 2008 7:43 PM To: [hidden email] Subject: Re: measure length of lines Here is one way to do this: 1. Open the ROI Manager. 3. Click "Show All". 4. For each cell, create a selection and press "t" (Edit>Selection>Add to Manager). 5. Click "Measure" in the ROI Manager. -wayne On Jan 28, 2008, at 5:15 AM, Marko Usaj wrote: > Hello everybody! > > I have following questions: > > I have microscopic picture of cells. I want to measure cell's diameter. > I wonder, what is the best way to do that: > > The line of already measured cell must be seen, even i measure another > cell. This is not possible with tool Straight line selection... > > Then, it is possible that result are immediate shown without pressing > all the time Measure command?? > > The task is simple, so I hope is there any good solution...or some good > plug-in exists for that... > > Thank you for your time and answers! > > Marko > |
What about Edit > Draw (Ctrl+D)?
Michael Marko Usaj wrote: > Ok, but the lines do not stay visible....? > > -----Original Message----- > From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of > Wayne Rasband > Sent: Monday, January 28, 2008 7:43 PM > To: [hidden email] > Subject: Re: measure length of lines > > Here is one way to do this: > > 1. Open the ROI Manager. > 3. Click "Show All". > 4. For each cell, create a selection and press > "t" (Edit>Selection>Add to Manager). > 5. Click "Measure" in the ROI Manager. > > -wayne > > > On Jan 28, 2008, at 5:15 AM, Marko Usaj wrote: > >> Hello everybody! >> >> I have following questions: >> >> I have microscopic picture of cells. I want to measure cell's > diameter. >> I wonder, what is the best way to do that: >> >> The line of already measured cell must be seen, even i measure another >> cell. This is not possible with tool Straight line selection... >> >> Then, it is possible that result are immediate shown without pressing >> all the time Measure command?? >> >> The task is simple, so I hope is there any good solution...or some > good >> plug-in exists for that... >> >> Thank you for your time and answers! >> >> Marko |
Thank you all of you, now works fine...
-----Original Message----- From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of Michael Weber Sent: Tuesday, January 29, 2008 3:20 PM To: [hidden email] Subject: Re: measure length of lines What about Edit > Draw (Ctrl+D)? Michael Marko Usaj wrote: > Ok, but the lines do not stay visible....? > > -----Original Message----- > From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of > Wayne Rasband > Sent: Monday, January 28, 2008 7:43 PM > To: [hidden email] > Subject: Re: measure length of lines > > Here is one way to do this: > > 1. Open the ROI Manager. > 3. Click "Show All". > 4. For each cell, create a selection and press > "t" (Edit>Selection>Add to Manager). > 5. Click "Measure" in the ROI Manager. > > -wayne > > > On Jan 28, 2008, at 5:15 AM, Marko Usaj wrote: > >> Hello everybody! >> >> I have following questions: >> >> I have microscopic picture of cells. I want to measure cell's > diameter. >> I wonder, what is the best way to do that: >> >> The line of already measured cell must be seen, even i measure >> cell. This is not possible with tool Straight line selection... >> >> Then, it is possible that result are immediate shown without pressing >> all the time Measure command?? >> >> The task is simple, so I hope is there any good solution...or some > good >> plug-in exists for that... >> >> Thank you for your time and answers! >> >> Marko |
In reply to this post by Ömer Necati CORA
Dear Cora,
First threshold your image and later click "Set Measurements" under "Analyze" menu Select only the area for your measurements. Then select the area which you want to measure by the "Freehand selection tool" and click "Analyze particles" under "Analyze" menu. If you want to exclude area on edges of your selection you will also find a box about this on the opened window. Kolay Gelsin -----Original Message----- From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of Ömer Necati CORA Sent: 28 Ocak 2008 Pazartesi 23:10 To: [hidden email] Subject: Porosity Measurement Hi Dear All, I have a simple question for experts like you (it's difficult so far for me) I have a picture in not rectangular or square form. When I open it and convert it to binary then measure the porosity it takes the area of whole picture (picture itself+plus white background that fills the rectangular. Is there any way to get porosity measurement for irregular shapes excluding the background? Thanks in advance... Omer N. CORA NSF I/UCR Center for Precision Forming Richmond,VA ____________________________________________________________________________ ________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping |
Free forum by Nabble | Edit this page |