Home > Back-end >  Digital image recognition algorithm based on Hausdorff distance
Digital image recognition algorithm based on Hausdorff distance

Time:10-22

Can help me to write a program for digital image recognition based on Hausdorff distance algorithm program can can call me at 13516878849 or add me qq514809516 I'm GeZhiWei

Matlab or c + + can be

CodePudding user response:

The building Lord lucky, just yesterday afternoon just wrote a:
 
% calculation Hausdoff distance of two images (change)

The function HDistance=GetHausdoffDistance (A, B)
Sz=size (A);
Height=sz (1);
Width=sz (2);

To calculate the distance from A to B %
DistAB=0;
For h=1: height;
For w=1: width;
If A (h, w)==1
% in B a 3 * 3 adjacent domain search shortest distance
MinDistance=10;
For m=1:1;
For n=1:1;
If ((h + m & gt;=1) & amp; & (h + m & lt;=height) & amp; & ((w + n & gt;=1) & amp; & (w + n & lt;=width))
If B (h + m, w + n)==1
Dist=m * m + n * n;
If (dist & lt; MinDistance)
MinDistance=dist.
End
End
End
End
End
DistAB=DistAB + MinDistance;
End
End
End

% to first calculate the distance to A
BDistBA=0;
For h=1: height;
For w=1: width;
If B (h, w)==1
A % in A 3 * 3 adjacent domain search shortest distance
MinDistance=10;
For m=1:1;
For n=1:1;
If ((h + m & gt;=1) & amp; & (h + m & lt;=height) & amp; & ((w + n & gt;=1) & amp; & (w + n & lt;=width))
If A (h + m, w + n)==1
Dist=m * m + n * n;
If (dist & lt; MinDistance)
MinDistance=dist.
End
End
End
End
End
DistBA=DistBA + MinDistance;
End
End
End

HDistance=Max (DistAB DistBA);
End

CodePudding user response:

Excuse me, are you the no identification, it was just the hausdorff distance?

CodePudding user response:

Words to the best of the building Lord really lazy

CodePudding user response:

I can assure you that a few years later, the original poster will send information to me, let me help him to delete this post, because the post revealed his personal information.

CodePudding user response:

4 # demon elder brother lit, mark, in the future
  • Related