how to solve the resizing of an image here?

1 visualizzazione (ultimi 30 giorni)
Shweta Mahajan
Shweta Mahajan il 11 Apr 2019
Risposto: Image Analyst il 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 Commenti
Rik
Rik il 11 Apr 2019
What code did you try? What is the full error message?
Shweta Mahajan
Shweta Mahajan il 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.

Accedi per commentare.

Risposte (1)

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

Categorie

Scopri di più su Data Type Conversion in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by