android - Bad result on shape recognition using invariant moments -


itemprop = "text">

My project is the shape recognition of the leaf, in order to calculate the distance between the image and the image in the test image, I have the extraction facility and Use unchanging moments for City block distance. As a result, it is very difficult to meet me. I can say that the recognition is only 50% less of the match. For example:

This is the test image

Enter the image details here </ P> <p> <img src =

Enter image details ">

I convert that image to binary image in otsu threshold, so the image looks good on size. My question, is this normal? Or do I have an error in my coding? This is the city block distance coding using my:

  CityBlock [J] = Math.abs (bMom1 - DB.GetBentukMoment1 (j)) + Math.abs (bMom2 - DB.GetBentukMoment2 ( J)) + Math.abs (bMom3 - DB.GetBentukMoment3 (J)) + Math.abs (bMom4 - DB.GetBentukMoment4 (j)) + Math.abs (bMom5 - DB.GetBentukMoment5 (j)) + Math.abs ( BMom6 - DB.GetBentukMoment6 (j)) + Math.abs (bMom7 - DB.GetBentukMoment7 (j));   

If I use the same image on that coding, the results do not return a value of 0. Why? Is it because double data type? After the text "itemprop =" text ">

Finally I know the problem on my application, double the value that i databases with double data type To save, I have to store the double value using the text data type, so I parse that to double, and then I get the zero value for the same image. But I think the irreversible moment is not good for matching the binary image, its better image is used on the cannial image because for some matches on the binary image I still get the problem like my question.

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -