Operator and foreach
Hello the community,
Actually, I have to manipulate an image of 5120 x 3840. I need to divide by 5 the image, save it and then write 0 for each pixel.
I just use :
Image = Image * 0.2;
...
Image = Image * 0 ;
I don´t how it codes. Is it more efficient to use foreach ?
Thank you,
just curious, why do you need to multiply with 0 ?
what is the context of your code ? what is it for ?
I get 5 images from a Gige camera (as fast as possible). Then, I sum those images (8 bit in grayscale) in a 32 bites image grayscale, I apply a median filter, and then I divide by 5. At the end of the process, I need to multiply the 32 bit image by 0, and then sum 5 new images. Am I clear ?
may be you can use a IIr filter