Hey every body....
I am asking "how can i compute area of the bounding box and convex hull where i had already get it's parameters?"
If you have the vertices of the convex hull, use the polyarea() command.
For the bounding boxes, you can simply multiply the last two numbers
Or you can ask regionprops to calculate the areas of the convex hulls. You just need to pass your binary image into bwconvhull() and then into regionprops
chulls = bwconvhull(binaryImage); measurements = regionprops(chulls, 'Area', 'BoundingBox'); % Compute the areas of each convex hull: allAreas = [measurements.Area]; % Compute the area of each bounding box. boundingBoxes = [blobMeasurements.BoundingBox]; allBBAreas = boundingBoxes(3:4:end) .* boundingBoxes(4:4:end);