Cropping a face from an Image
1 次查看(过去 30 天)
显示 更早的评论
Hi, so im able to create a bounding box around the faces in an image. Now I would like to crop the image so that I am just left with the images from within the bounding boxes using imcrop. I have so far been unable to do this.
Thank you
0 个评论
采纳的回答
KSSV
2020-2-7
I = imread('cameraman.tif');
[J, rect] = imcrop(I);
Perform the crop operation by double-clicking in the crop rectangle or selecting Crop Image on the context menu.
imshow(J) ;
2 个评论
KSSV
2020-2-7
You got the output rect ..use that to crop to the same size and location.....
I2 = imcrop(I,rect);
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Computer Vision Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!