필터 지우기
필터 지우기

unable to perform assignment error in im2col

조회 수: 1 (최근 30일)
MatlabEnthusiast
MatlabEnthusiast 2021년 1월 4일
댓글: MatlabEnthusiast 2021년 1월 4일
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

채택된 답변

Walter Roberson
Walter Roberson 2021년 1월 4일
A
Image, specified as a 2-D grayscale image, 2-D binary image, or 2-D indexed image.
  댓글 수: 1
MatlabEnthusiast
MatlabEnthusiast 2021년 1월 4일
however, I missed that at this hour only God knows. thanks.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by