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.
2.1m questions
2.1m answers
60 comments
57.0k users