Skip to content

Zernike moments - Getting wiered values after above 20 degree  #96

@sanctusin

Description

@sanctusin

Trying to extract ZM from two images and compare them with opencv norm function to measure similarity,
It works well for below 20 Degree but it doesn't capture detail information of images so for some images i am getting wrong similarity.

I tried to increase Degree to 60 Degree and found out that same image from different image giving Negative number like -88835.23 which should be between 0 to 1

can you please look into it and resolve the issue code below
desc = mahotas.features.zernike_moments(imres, 200, degree=60, cm=200,200)
desc1 = mahotas.features.zernike_moments(imres1, 200, degree=60, cm=200,200)
score = cv2.norm(desc, desc1, cv2.NORM_L2)

Thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions