Effacer les filtres
Effacer les filtres

Trouble with Imoverlay - Attempt to grow array along ambiguous dimension.

2 vues (au cours des 30 derniers jours)
Lisa Alhadeff
Lisa Alhadeff le 25 Avr 2016
Hi,
I'm using the Imoverlay code found at http://uk.mathworks.com/matlabcentral/fileexchange/10502-image-overlay. It seemed to work the other day, but now I'm getting the following error:
Attempt to grow array along ambiguous dimension.
Error in imoverlay (line 68)
out_red(mask) = color_uint8(1);
My code is:
I = imread('18_6_Red.tif');
I2 = imread('OutlineGreenFat.tif');
rgb = imoverlay(I, I2, [0 1 0]);
imshow(rgb);
imwrite(rgb, 'ProfileHighlighted.tif');
Incidentally, 'OutlineGreenFat' is binary, not rgb in spite of the name.
These are my variables:
Any help would be greatly appreciated!

Réponses (1)

Vineeth Kartha
Vineeth Kartha le 2 Mai 2016
Hi,
Please try using an image with smaller resolution, this will help us to identify if its a dimension related issue.
Since the code that you are using is from the file exchange, it will be a good idea to contact the author of the script.
Regards Vineeth

Catégories

En savoir plus sur Loops and Conditional Statements dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by