Why I am getting Error?
조회 수: 2 (최근 30일)
이전 댓글 표시
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.
댓글 수: 2
답변 (1개)
Roger Stafford
2014년 2월 14일
My guess would be that your JPEG files are not in a format that 'imread' expects. Try specifying their format.
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!