how to solve the resizing of an image here?

1 Ansicht (letzte 30 Tage)
Shweta Mahajan
Shweta Mahajan am 11 Apr. 2019
Beantwortet: Image Analyst am 15 Apr. 2019
////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 Kommentare
Rik
Rik am 11 Apr. 2019
What code did you try? What is the full error message?
Shweta Mahajan
Shweta Mahajan am 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.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

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

Kategorien

Mehr zu Data Type Conversion finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by