Posted by
Harry Parker on
URL: http://imagej.273.s1.nabble.com/Open-images-tp3703382p3703384.html
Hello Rinto,
Your 1st question has several answers, depending on how you define "length".
Check the sites listed on ImageJ's Plugins page, especially Gabriel Landini's
http://www.dentistry.bham.ac.uk/landinig/software/software.html .
Yes, you can easly shrink lines to one pixel in 3 command steps. these can be recorded as a Macro to make them one keyboard stroke. Have you read the ImageJ documentation? See
http://rsb.info.nih.gov/ij/docs/menus/process.html .
Try the
Process->Binary->Skeletonize
command.
You 1st need to convert your image from 16 bit to binary with 2 commands:
Image->Type->8-bit,
then
Process->Binary->Threshold.
There exist many ways to transfer the image to a matrix. You can copy and paste the image, you can save the processed image to a spreadsheet, or you can write a macro or a Java method to do it. Internally the image is stored in a one dimensonal array, but you can read and write the pixel values to any other data structure you like. See the developer's documentation at
http://rsb.info.nih.gov/ij/developer/index.html .
Hope this helps.
Rinto Anugraha <
[hidden email]> wrote: Dear All,
I have one 16bits grayscale image which contain only
some curved black lines, and the other areas is white.
The black lines are not the straight ones, and also
have their width more than one pixel.
How to measure the length of lines? Is it possible to
shrink the width lines into only one pixel? Is there
any plug-in, so we can transfer all coordinates of
pixels and their values into a matrix, in which the
matrix rows and colums same as the pixel size of the
image.
Thanks
Rinto Anugraha
Kyushu University, JAPAN
--
Harry Parker
Systems Engineer
Dialog Imaging Systems, Inc.
---------------------------------
Yahoo! Mail
Bring photos to life! New PhotoMail makes sharing a breeze.