halftoning(ordered dithring)

8 visualizaciones (últimos 30 días)
ram
ram el 7 de Abr. de 2011
Movida: DGM el 29 de Dic. de 2023
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

Respuesta aceptada

Paulo Silva
Paulo Silva el 7 de Abr. de 2011
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 comentarios
Paulo Silva
Paulo Silva el 7 de Abr. de 2011
Movida: DGM el 29 de Dic. de 2023
yes
ram
ram el 7 de Abr. de 2011
Movida: DGM el 29 de Dic. de 2023
thx alot i realy appreciate your help
i spend the whole week looking 4 the solution
u realy save my time
:)

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by