One need to automatically find the coordinates of top left corner and width & height of subimage to be cropped. Once determined, you can run the following example code from MATLAB imcrop documentation to automatically crop subimages from any image
I = imread('circuit.tif');
% I2 = imcrop(I, rect) crops the image I. rect is a
One need to automatically find the coordinates of top left corner and width & height of subimage to be cropped. Once determined, you can run the following example code from MATLAB imcrop documentation to automatically crop subimages from any image
I = imread('circuit.tif');
% I2 = imcrop(I, rect) crops the image I. rect is a
Yes, you can, based on the image you need to select automatically the parameters of MATLAB function "imcrop". The selection of parameters depends on the application for which you need to crop the image.
I have hundreds of colour images with extra information , I want to cut just the face from this images without extra information in the same size to use them to extract features from images. Could you please any one help me to how I can calculate selection parameters .
Please anybody explain the imcrop(I,[xmin ymin width height]) with an example. I have attached my problem herewith. Please give me some suggestions. Thanks for all.