IMAGE MANIPULATON USING NESTED FUNCTION

I am writing a code for image manipulation and need to know how to set MAXCOL AND MAXROW by using size() function. Thanks I am new to matlab if my question seems premature

 채택된 답변

Matt J
Matt J 2013년 4월 1일

0 개 추천

[maxcol, maxrow] = size(YourImage);

댓글 수: 2

Better yet,
[maxcol, maxrow, maxpane] = size(YourImage);
If your image is RGB then the two-output version will give you the wrong result for maxrow.

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

추가 답변 (0개)

질문:

2013년 4월 1일

Community Treasure Hunt

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

Start Hunting!

Translated by