Let's say I have a .jpg such as below. Is it possible in R to select say 25% of pixels then produce a a new .jpg with those pixels filled in a given colour. Similar to the following question in matlab Randomly Selecting Pixels in a Picture Matlab
↧
Select and fill random pixels in jpg
↧
