LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

uInt8 multiplication

Hi,

 

I have a Image* singleImage variable and uInt8* imageArray. I want to multiply all elements by 16.

Please let me know which way is fastest way.

 

Sincerely,

Taiyoon Lee

0 Kudos
Message 1 of 2
(2,605 Views)

You can shift the bits to the left by four which will give you a 16 multiplier however you might have to worry about overflow.

Ian M.
National Instruments
0 Kudos
Message 2 of 2
(2,587 Views)