public static void multiply ( GrayU8 input , double value , GrayU8 output ) { output . reshape ( input . width , input . height ) ; int columns = input . width ; if ( BoofConcurrency . USE_CONCURRENT ) { ImplPixelMath_MT . multiplyU_A ( input . data , input . startIndex , input . stride , value , output . data , output . startIndex , output . stride , input . height , columns ) ; } else { ImplPixelMath . multiplyU_A ( input . data , input . startIndex , input . stride , value , output . data , output . startIndex , output . stride , input . height , columns ) ; } }
Multiply each element by a scalar value . Both input and output images can be the same instance .