I have a uint8 image and a mask of it (float32).
The mask has ones where the object I want to keep is, and zeros for the background.
I want to make a new image that shows the real colored object instead of the ones, and keep the background zeros.
I tried to multiply both images but it says that the mask has 3 dimensions and the colored image 4 dimensions.
1.4m articles
1.4m replys
5 comments
57.0k users