-1
Hello, I’m developing an application in Octave, which is very similar to Mathlab and C, which calculates the height and width of an object, which in this case is a seed.
The program receives an input image and then binarizes. I would like to know how to calculate this distance, because I have researched a lot and I could not understand very well.
One of the questions is: How to find the two points in the image to measure the distance between them? Because like, in my thought I have to get to the "middle" of the object, the top and "go down" a line to the end of the object, that way I would have a line of pixels, that after performing a rule of three with another object of known size, I would get this information.
Grateful from now on.
What have you done so far?
– Maurício Z.B
I am in the process of acquiring the images. However, I was left with this doubt when I started thinking about the code.
– Lucas Andrade
What format is the image file?
– Marcelo Shiniti Uchimura
The input image is in .jpg. Then I turn it black and white.
– Lucas Andrade