Why I am getting Error?

1 次查看(过去 30 天)
Explorer
Explorer 2014-2-13
评论: uday 2023-4-14
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 个评论
Walter Roberson
Walter Roberson 2014-2-13
I think we will need to see the images.
uday
uday 2023-4-14
featB2=extract(b2)

请先登录,再进行评论。

回答(1 个)

Roger Stafford
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.

类别

Help CenterFile Exchange 中查找有关 Lighting, Transparency, and Shading 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by