If follow the convention applied to the tiff boundary(mask file), i.e. "white pixels correspond to epithelial cell regions and black pixels correspond to anything else in the image i.e the background, collagen fibers etc. ",  the image edge will not be counted in as one boundary and we do not need to rule it out.