IMAGE MANIPULATON USING NESTED FUNCTION
2 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
采纳的回答
Matt J
2013-4-1
[maxcol, maxrow] = size(YourImage);
2 个评论
Walter Roberson
2013-4-1
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.
Image Analyst
2013-4-1
As discussed in Steve Eddins's blog: http://blogs.mathworks.com/steve/2011/03/22/too-much-information-about-the-size-function/
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!