This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Function which returns the labelled image after applying CRF | |
""" | |
#Original_image = Image which has to labelled | |
#Mask image = Which has been labelled by some technique.. | |
def crf(original_image, mask_img): | |
# Converting annotated image to RGB if it is Gray scale | |
if(len(mask_img.shape)<3): |