Why I am getting Error?

2 views (last 30 days)
Explorer
Explorer on 13 Feb 2014
Answered: Roger Stafford on 14 Feb 2014
CODE
clear all; close all; imtool close all; clc;
imag1 = imread('C:\Users\Explorer\Documents\MATLAB\ASL_signs\A.jpg');
imag2 = imread('C:\Users\Explorer\Documents\MATLAB\ASL_signs\A2.jpg');
imag3 = imread('C:\Users\Explorer\Documents\MATLAB\ASL_signs\A3.jpg');
imag4 = imread('C:\Users\Explorer\Documents\MATLAB\ASL_signs\A4.jpg');
imag5 = imread('C:\Users\Explorer\Documents\MATLAB\ASL_signs\A5.jpg');
v1= descrip_blob2(imag1)
v2= descrip_blob2(imag2)
v3= descrip_blob2(imag3)
ERROR
Warning: Iterations terminated prematurely because no part of the contour lies within
the image domain. If the range of pixel values in the input image is small (such as
0-1), consider increasing the range by multiplying the input image with a scale
factor. Also, consider specifying a different initial contour position in MASK.
> In C:\Program Files\MATLAB\R2013a\toolbox\images\images\+images\+activecontour\+internal\ActiveContourEvolver.p>ActiveContourEvolver.moveActiveContour at 105
In activecontour at 232
In descrip_blob2 at 20
Warning: Contour not rendered for constant ZData
> In contour>parseargs at 223
In contour at 79
In descrip_blob2 at 29
Index exceeds matrix dimensions.
Error in descrip_blob2 (line 57)
thisBoundary = boundary{2}; % Or whatever blob you want.
  1 Comment
Walter Roberson
Walter Roberson on 13 Feb 2014
I think we will need to see the images.

Sign in to comment.

Answers (1)

Roger Stafford
Roger Stafford on 14 Feb 2014
My guess would be that your JPEG files are not in a format that 'imread' expects. Try specifying their format.

Community Treasure Hunt

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

Start Hunting!

Translated by