Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Operator and foreach

Hello the community,

Actually, I have to manipulate an image of 5120*3840. I need to divide by 5 the image, save it and then write 0 for each pixel.

I just use : Image =Image0.2; ... Image =Image0 ;

I don´t how it codes. Is it more efficient to use foreach ?

Thank you,

click to hide/show revision 2
None

updated 2020-02-24 03:58:29 -0600

berak gravatar image

Operator and foreach

Hello the community,

Actually, I have to manipulate an image of 5120*3840. 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= Image * 0.2;
 ...
Image =Image= Image * 0 ;

;

I don´t how it codes. Is it more efficient to use foreach ?

Thank you,

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,