4th July – getShape modified

I modified some limits of circularity that is used to recognize the shape. Also now when calling the function, it displays the image with the shapes highlighted with a bounding box.

The original image (importme.jpg) is:

Robotic Vision Worksheet
So the whole process is:

im = iread('importme.jpg', 'double');
im2 = igamm(im, 'sRGB');

r = getColor(im2, 'red');
Do you want to set threshold value?[y/n]n
OK entering applying default threshold...
thresholdRed =
0.4500
thresholdGreen =
0.4500
thresholdBlue =
0.4500

rc=getShape(r,'circle');

getShape output

The code for the functions can be seen at: https://github.com/mandeeps708/RoboticVision

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s