We need to add into our solution a library class project for eccentricity value of blobs like Matlab does.
## Deliverables
The requirements are:
- Create a Visual Studio 2008 library class project.
- Follow Matlab code we provide.
Matlab code:
%% eccentricity
bw = imread('[login to view URL]');
[B,L] = bwboundaries(bw,4);
properties = regionprops(L,'all');%object properties
for k = 1:length(B)
disp('-----------------------------');
disp(' X Y');
disp(properties(k,1).Centroid);
disp('Eccentricity');
disp(properties(k,1).Eccentricity);
end
Interface definition:
Struct Centroid{
Float x;
Float y;
Float eccentricity;
};
**Function:** Centroid eccentricity (Bitmap image)
**Parameters:**
- ***image****: The image which we calculate the eccentricity.*
**Behaviour:**
- *The function has to calculate the eccentricity of the blobs. The result will be the eccentricity. 1 means perfect roundness and 0 not round. All blobs will be close to 0.95.*
- *If everything is ok, a struct will be returned with X,Y position and the eccentricity of the blob.*
Deliverables:
We will know that you have read this specs if you propose deadline with your bid.
Deliverable will be a project written in C# language that compiles in .DLL library with Eccentricity class inside and centroid structure as defined above.
We provide you of the original image. Using this image the algorithm has to calculate the roundness of all the blobs. Also, we provide you of a table with the X, Y and the roundness value calculated using the same Matlab script.