필터 지우기
필터 지우기

change color intensity of matrix for some pixels

조회 수: 1 (최근 30일)
Anvinder  Singh
Anvinder Singh 2016년 3월 12일
답변: Walter Roberson 2016년 3월 12일
I have a matrix and it has 2 squares, i have used "a = ones(256, 256, 3);" so it gives me a white background. I wantt to change it to gray. What should i do ? Thank you.

답변 (1개)

Walter Roberson
Walter Roberson 2016년 3월 12일
For example,
a(10:20,32:78,:) = 1/4;

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by