CSAILVision / LabelMeAnnotationTool

Source code for the LabelMe annotation tool.
MIT License
1.39k stars 437 forks source link

Fixed incorrect index calculation in setPixel #21

Closed bsb20 closed 9 years ago

bsb20 commented 9 years ago

-Index was multiplied by 4 an extra time in setPixel -Was this responsible for some odd artifacts being left on segmented images?

xavierpuigf commented 9 years ago

Thank you for noticing! That bug affected the way automatic background was set on the image (so that if you only scribbled the object, and not the background you could still perform a good segmentation).