We have an image that we open it from the folder. After we detect the boundary, we want to use this image, not the original image. I have tried but it still using the original image. What must I do?

Thank you