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);1.jpg
  2 个评论
Rik
Rik 2019-4-11
What code did you try? What is the full error message?
Shweta Mahajan
Shweta Mahajan 2019-4-15
error message was ////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////
I've tried the matlab code area which is in in matlab website and they surely get the result but I didn't get it. It's my project I'm working on & in which I've to calculate the area of the tumor.

请先登录,再进行评论。

回答(1 个)

Image Analyst
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.

类别

Help CenterFile Exchange 中查找有关 Image Processing Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by