Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I am passing 2 same images in hausdorff and shapeContextDistanceExtractor to calculate distance. We are expecting the answer to be zero since the images are same but we are getting a non-zero value. Can somebody please explain why.

            // Hausdorff Distant Extractor

            Ptr<HausdorffDistanceExtractor> model = createHausdorffDistanceExtractor();

            dist = model->computeDistance(c1, c2);

I am passing 2 images and extracting the points using samplecounters. Here c1 and c2 are the vector of countour points which are passed to the computeDistance function. The 2 images that I pass are same yet the distance I am getting in dist is non-zero. Please help.

click to hide/show revision 2
No.2 Revision

updated 2017-06-02 01:10:29 -0600

berak gravatar image

hausdorff shape distance

I am passing 2 same images in hausdorff and shapeContextDistanceExtractor to calculate distance. We are expecting the answer to be zero since the images are same but we are getting a non-zero value. Can somebody please explain why.

            // Hausdorff Distant Extractor

            Ptr<HausdorffDistanceExtractor> model = createHausdorffDistanceExtractor();

            dist = model->computeDistance(c1, c2);

I am passing 2 images and extracting the points using samplecounters. Here c1 and c2 are the vector of countour points which are passed to the computeDistance function. The 2 images that I pass are same yet the distance I am getting in dist is non-zero. Please help.

The hausdorff shape distancedistance is not zero even when 2 same images are passed

I am passing 2 same images in hausdorff and shapeContextDistanceExtractor to calculate distance. We are expecting the answer to be zero since the images are same but we are getting a non-zero value. Can somebody please explain why.

            // Hausdorff Distant Extractor

            Ptr<HausdorffDistanceExtractor> model = createHausdorffDistanceExtractor();

            dist = model->computeDistance(c1, c2);

I am passing 2 images and extracting the points using samplecounters. Here c1 and c2 are the vector of countour points which are passed to the computeDistance function. The 2 images that I pass are same yet the distance I am getting in dist is non-zero. Please help.