jellespijker / VisionSoilAnalyzer

Soil analyzer using an USB microscope - for Linux PC and Beaglebone Black
4 stars 1 forks source link

Calculate the particle diameter with an elliptical correction #91

Closed jellespijker closed 8 years ago

jellespijker commented 8 years ago

Currently the diameter of particles don't correspondent with the tested samples, on average the vision analysed particles are bigger. This error can probably be explained because the current diameter is calculated by treating them as perfect circles. But I believe that with sieving the smallest diameter count with elliptic particles. imag1447

Therefore the hu moments for each particle wil be calculated and the particles will be orrientatie horizontally where the height of the particle counts as the smallest diameter.

The centroid of the particle will be calculated with (M10 / M00) , (M01 / M00) and will act as the input for getting the Fast Fourier Descriptors

See issue #90