### Find pixel area and number of differences

Posted:

**Sun Jul 16, 2017 7:19 am**Hello,

I need to compare two image.

The first one is a base image, think of that as smooth surface.

The second one, is the same image, but it could be contains some manufacturing mistake (scratch, hole and so one).

Both of them images are always in the same format.

What I'm looking for is the following:

1 - Find the number of defects.

2 - Find the distance between one defect and other.

2 - Similary to 2nd point, calculate the entire area which contains the defect.

Is there some AForge feature in order to accomplish this task?

Thank you in advance.

I need to compare two image.

The first one is a base image, think of that as smooth surface.

The second one, is the same image, but it could be contains some manufacturing mistake (scratch, hole and so one).

Both of them images are always in the same format.

What I'm looking for is the following:

1 - Find the number of defects.

2 - Find the distance between one defect and other.

2 - Similary to 2nd point, calculate the entire area which contains the defect.

Is there some AForge feature in order to accomplish this task?

Thank you in advance.