Crop image based on binary mask

Given a RLE mask ,i want to crop the image around the mask so if image is quite big 10241024 and as per mask object of interest is located in small portion of image. I wan to crop image of size 256256 which will enclose the mask completely.

1 Like

Have you found the solution?