drawing bounding box for images

1 次查看(过去 30 天)
nkumar
nkumar 2013-2-23
I have a code below,in this i want to draw bounding box for each image,plz tell how to get coordinates and draw bounding box
siz = 64;
bs = siz;
Original = myimage; G = myimage ;
nob = (r/bs)*(c/bs);
in =0;
kk=0;
for i=1:(r/bs)
for j=1:(c/bs)
myima8(:,:,kk+j)=G((bs*(i-1)+1:bs*(i-1)+bs),(bs*(j-1)+1:bs*(j-1)+bs));
figure,imshow(myima8(:,:,kk+j))%%%have to draw bounding box
end
kk=kk+(r/bs);
end
figure;imshow(G);

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Image Processing Toolbox 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by