Hi,
I have an image 800 x 800. I want to set a 10 x 10 region at center 200,200 to ZERO. How do i do that ? Help thanks
Managed to do it. Thanks

댓글 수: 1

conor paxton
conor paxton 2018년 10월 19일
Hello, Could I ask, how you managed to do it please?

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

답변 (2개)

Guillaume
Guillaume 2016년 2월 10일

0 개 추천

A 10x10 region can't be centered on a pixel. It needs to have an odd size.
Anyway:
yourimage(196:205, 196:205, :) = 0
David Sanchez
David Sanchez 2016년 2월 10일

0 개 추천

If I is your image
I(201:210,201:210) = 0;

댓글 수: 1

Guillaume
Guillaume 2016년 2월 10일
That's hardly centered on 200,200 !
And that only works with grayscale images

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

질문:

2016년 2월 10일

댓글:

2018년 10월 19일

Community Treasure Hunt

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

Start Hunting!

Translated by