Hitachi-Automotive-And-Industry-Lab / semantic-segmentation-editor

Web labeling tool for bitmap images and point clouds
MIT License
1.82k stars 439 forks source link

zooming smoothes image instead of showing pixels #168

Open gtlv97dot6 opened 2 years ago

gtlv97dot6 commented 2 years ago

Hi Damien,

great tool you have here. I was trying it and noticed that when zooming all the way to the max on the picture I want to annotate, the editor is interpolating. I went to look in the code if there was something I could easily try and I saw that you already configured it this way from the very beginning. However, on Firefox and Chromium on linux, Firefox, Edge and, Chrome on Windows, there is smoothing despite your configuration. Not knowing the stack and not being a Node.js programmer, I figured it might be faster to ask you if you know what is going on rather than digging for hours.

Thanks, for the software and for the help/fix if you can provide it.

Cheers

dmandrioli commented 2 years ago

Thank you! I fully agree than smoothing is not expected in the context of labeling and I did try to get something working. I think it was working in 2018...maybe something changed in browser implementation.

gtlv97dot6 commented 2 years ago

Hello Damien, I managed to get some time to try some changes here and there. By updating paperjs to the most recent version I got back the expected behaviour in terms of smoothing, however it broke the placement of the image and I could not find a way to fix it. I tried all sorts of changes in imageLoaded and resizeCanvas but without success.

dmandrioli commented 2 years ago

Thank you for your feedback. Actually I also tried some experiments without success...