Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- img=imread('matches.png');
- mask=imread('matchMask.png');
- [lin col]=size(img);
- nimg=zeros(lin, col, 3);
- inc=50;
- aux=img; %inc
- aux(mask==0)=aux(mask==0)+inc;
- nimg(:,:,1)=aux;
- nimg(:,:,2)=aux; %inc
- aux(mask==0)=aux(mask==0)+inc;
- nimg(:,:,3)=aux; %2*inc
- nimg=uint8(nimg);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement