unable to perform assignment error in im2col
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
MatlabEnthusiast
am 4 Jan. 2021
Kommentiert: MatlabEnthusiast
am 4 Jan. 2021
Hello, I think am making a basic error somewhere but I can not figure it out yet. How best can I achieve this, or what type of image is im2col expecting here? I tried indexed version to no avail.
Here is the minimal code that reproduces the error
im = imread('Image.jpg');
im = im2double(im);
im2col(im, [8 8], 'distinct');
where Image.jpg is of type uint8.
the error i get:
Unable to perform assignment because the size of the left side is 420-by-560 and the
size of the right side is 420-by-560-by-3.
Error in im2col (line 63)
aPad(1:size(a,1),1:size(a,2)) = a;
Thank you so much
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 4 Jan. 2021
A
Image, specified as a 2-D grayscale image, 2-D binary image, or 2-D indexed image.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Get Started with MATLAB 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!