how to solve the resizing of an image here?

1 view (last 30 days)
////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 Comments
Rik
Rik on 11 Apr 2019
What code did you try? What is the full error message?
Shweta Mahajan
Shweta Mahajan on 15 Apr 2019
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.

Sign in to comment.

Answers (1)

Image Analyst
Image Analyst on 15 Apr 2019
Try this:
filename='1.jpg';
A = imread(filename); % Use imread() instead of importdata().
but your bwarea() call doesn't do anything.

Categories

Find more on Data Type Conversion in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!