Can somebody elaborate the significance of this python code here. Is this a general way to find the tumor(region of interest) in a given image. Is this how the region of interest measured for the baseline algorithm. https://github.com/aur-dream/dm-caffe-example/blob/master/aur-baseline-preprocessing/preprocess_dm_images.py

Created by Mohammad Rahman mohammad
A lot of the images have a lot of empty space. This is a way of finding the largest object and cropping the image to that object. You can do this with scipy ndimage as well if you don't want to install opencv.

Finding the region of interest in a given image page is loading…