how to expang an image
Mostrar comentarios más antiguos
i am working on "Center Point Determination & Cropping",wen i divide the image into blocks of 8*8,the image appears too small on screen,how to enlarge it,can anyone help me please
4 comentarios
Jan
el 12 de Sept. de 2011
Please explain any details. Dividing the image into block do not display *anything* on the screen, and in cosnequence it cannot be dispalyed too small. Please post the code, hwich you use for displaying.
Pat
el 13 de Sept. de 2011
Walter Roberson
el 13 de Sept. de 2011
See Sean's answer, or switch to using image() instead of imshow and then read my answer.
Walter Roberson
el 13 de Sept. de 2011
By the way, your line
Block(:,:,kk+j)=I((bs*(i-1)+1:bs*(i-1)+bs),(bs*(j-1)+1:bs*(j-1)+bs));
can be written more efficiently as
Block(:,:,kk+j)=I((bs*(i-1)+1:bs*i),(bs*(j-1)+1:bs*j));
There are additional efficiencies that can be used as well.
Respuestas (2)
Walter Roberson
el 12 de Sept. de 2011
0 votos
Changing the axes limits via xlim() and ylim() will make the image appear larger or smaller.
Sean de Wolski
el 12 de Sept. de 2011
0 votos
Look at the 'InitialMagnification' option in both imshow and imtool
Categorías
Más información sobre Neighborhood and Block Processing en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!