halftoning(ordered dithring)
조회 수: 2 (최근 30일)
이전 댓글 표시
i have a small problem in dithring code when i run the code i get this massage error:
??? Error using ==> gt Matrix dimensions must agree.
i chang the matrix size in repmat(d,128,128) but even of that i get the same message error also i search for alooong time but i could not find the solution for this problem
this is my code: f=imread('2.png'); f2=rgb2gray(f); imshow(f2) d=[0,128;192,64]; r=repmat(d,128,128) f3=f2>r;imshow(f3)
plz i need a small help
댓글 수: 0
채택된 답변
Paulo Silva
2011년 4월 7일
f2 and r don't have the same dimensions for sure, that gt in the error stands for greater than. try this:
isequal(size(f2),size(r))
if the answer is 0 they aren't of equal dimensions
댓글 수: 7
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!