I want to multiply an image by a scalar value in MATLAB. How do I do it?
You just use the *
operator, as you might expect, e.g.
y = x * k;
where x is the input image, k is a scalar value, and y is the resulting scaled image.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With