Adding a Brightness Value

조회 수: 14 (최근 30일)
Alexiss Rivas
Alexiss Rivas 2017년 6월 11일
답변: KSSV 2017년 6월 12일
Can someone help me in writing a code that brightens the top left corner of an image by y, where y is an integer variable representing the amount by which to increase brightness. I'm still in the basics, so I need to use for loops or vectorization, no brightness function. Just writing out an actual code that can manipulate the sizes and layers.
I know that I will be using something along the lines of i= 1:row/2: end and j= 1: col/2: end... or at least I think so?
Thanks!

답변 (1개)

KSSV
KSSV 2017년 6월 12일
I = imread('your image') ;
y = 100 ; % add pixel value
I(1,1,:) = I(1,1,:)+y; % top left corner is given by (1,1)

카테고리

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