I am pretty new to processing, trying to start a sketch that is using a video and display it onto the screen until the user presses a mouse-button and then the video should be transformed in the following way: comparing the values of red, green and blue of each pixel and setting the pixel's color to the color (r,g,b) that has the highest value
I do have a working version for a image already and I am trying to do a similar thing for a video write now. I thought I could just create a new image, creating an array for the new color and with the pixels-function I can set the new color to the color stored in the array and then display the image... but somehow it doesn't work as expected.... I get the following error ArrayIndexOutOfBorder in the last line...
here is the code, maybe someone could help?? thanks in advance!