- Nov 19, 2007
- 2,793
- 2
- 0
I just got a project from a friend.
He needs to take pictures of small strips of copper then measure their length. It has to be within a certain range.
I am using ImageJ for the project although if anyone has any alternatives, please suggest them. ImageJ is written in java, which I don't really know about, so I'm just picking it up as I go.
(we are assuming everything is only along the x axis)
I wrote a small macro that makes images black and white (binary colors) so the edges are very well defined.
So now I would want to have the program recognize the furthest left black pixel and then draw a horizontal line across to the furthest right black pixel.
Later when I figure out the inch-to-pixel mapping I would just want to find the furthest left black pixel and draw a few lines of certain lengths to determine that it is the right length.
It's not super-urgent, but advice would be appreciated.
He needs to take pictures of small strips of copper then measure their length. It has to be within a certain range.
I am using ImageJ for the project although if anyone has any alternatives, please suggest them. ImageJ is written in java, which I don't really know about, so I'm just picking it up as I go.
(we are assuming everything is only along the x axis)
I wrote a small macro that makes images black and white (binary colors) so the edges are very well defined.
So now I would want to have the program recognize the furthest left black pixel and then draw a horizontal line across to the furthest right black pixel.
Later when I figure out the inch-to-pixel mapping I would just want to find the furthest left black pixel and draw a few lines of certain lengths to determine that it is the right length.
It's not super-urgent, but advice would be appreciated.
