MATLAB: How can i define MinSize, i am getting an error

minsize

When i try to pass a MinSize i am getting an error like i=this one below..How can i fix it?
Undefined function 'MinSize' for input arguments of type 'struct'.
Thank you

Best Answer

...
I= dir([image_path,'*.jpg']);
[h w]=MinSize(I);
...
Of course you got the error-- I is the directory structure returned by dir, you've not loaded an image.
Related Question