how to solve the resizing of an image here?
2 次查看(过去 30 天)
显示 更早的评论
////Unable to perform assignment because the size of the left side is 600-by-3008 and the size of the right side is 600-by-600-by-3////
filename='1.jpg';
A = importdata(filename);
image(A);
imshow(A);
bwarea(A);
2 个评论
回答(1 个)
Image Analyst
2019-4-15
Try this:
filename='1.jpg';
A = imread(filename); % Use imread() instead of importdata().
but your bwarea() call doesn't do anything.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!