필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Dear All please i need help in this

조회 수: 1 (최근 30일)
Hassan Qassim
Hassan Qassim 2017년 9월 6일
마감: MATLAB Answer Bot 2021년 8월 20일
I am trying to change the values of certain pixels in a gray scale image, specifically i want to decrease the intensity of these pixels by 50. I have identified the pixels that I want to change their intensity using imtool. these pixels are located near to the center of the image. my question is there any mean allows me to change the intensity of these pixels without affecting any adjacent pixel.
Regards

답변 (1개)

KSSV
KSSV 2017년 9월 7일
If you have the indices of the pixel.....you can replace them with your value.
If you have local indices (i,j):
I(i,j) = val ;
If you have global index, idx:
I(idx) = val;
  댓글 수: 2
KSSV
KSSV 2017년 9월 7일
Hassan Qassim commented:
Thanks KSSV for replying I think i was not clear abou my problem. I need to change the value of pixels at certain rows and coluns. Its very hard to change these pixels one by one.
In another words I need a loop go through specific rows and columns and changing the value of pixels related to that rows an columns.
Regards
KSSV
KSSV 2017년 9월 7일
You need not to run a loop....if you have indices...at a stretch you can replace them with your value.

이 질문은 마감되었습니다.

제품

Community Treasure Hunt

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

Start Hunting!

Translated by