Ask your own question, for FREE!
Computer Science 15 Online
OpenStudy (anonymous):

Hi everyone i need help in matlab

OpenStudy (anonymous):

here is description: I'm trying to achieve Shapes detection following is my code function [] = Object_Rec (I) Ig = rgb2gray(I); threshold = graythresh(Ig); bw = im2bw(Ig,threshold); bw = bwareaopen(bw,30); se = strel('disk',2); bw = imclose(bw,se); bw = imfill(bw,'holes'); [B,L] = bwboundaries(bw,'noholes'); imshow(label2rgb(L, @jet, [.5 .5 .5])) hold on for k = 1:length(B) boundary = B{k}; plot(boundary(:,2), boundary(:,1), 'w', 'LineWidth', 2) end now i need a way to detect square in an image can anyone help me in this regard thanks cheers :)

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!