b_1=imread('3 (1).bmp');
b_2=imresize(b_1,[42 24]);
NewTemplates_2=mat2cell(letter_1,42);
celldisp(NewTemplates_2);
while executing the following statement an array with elements other than 0 and 1 is displaying.
If i change
b_2=imresize(b_1,[42 24]);
to
b_2=imresize(b_1,[42 24]);
the code results in the error :
Number of input vector arguments, 2,
does not match the input matrix's number of dimensions, 3.
Please help me.

댓글 수: 3

Image Analyst
Image Analyst 2018년 3월 23일
Please attach '3 (1).bmp'. And explain better the change you made to the imresize() line.
ATHUL NARAYANAN
ATHUL NARAYANAN 2018년 3월 24일
actually i am working on a project that require template matching in the last step.template matching is done with characters of pixel 24*42.while using this image '3 (1).bmp' i got the following error
ATHUL NARAYANAN
ATHUL NARAYANAN 2018년 3월 24일
image is as below

댓글을 달려면 로그인하십시오.

답변 (1개)

KALYAN ACHARJYA
KALYAN ACHARJYA 2018년 4월 20일

0 개 추천

I don't see any change in your lines-

Second Your original Images(3 Dimensional) is already in [42 24], why you go for it again, I execute it, the

re is no error

카테고리

도움말 센터File Exchange에서 Images에 대해 자세히 알아보기

태그

질문:

2018년 3월 23일

답변:

2018년 4월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by