piximi / annotator

https://piximi.github.io/annotator/
4 stars 2 forks source link

Use konva filters for image rescaling #260

Closed DavidStirling closed 3 years ago

DavidStirling commented 3 years ago

I think I have this mostly working. Adjusting channels now generates a custom konva filter which performs the rescaling operation on the raw data without the need to generate a data url and re-render the entire canvas from scratch.

Things that could use tidying up:

In my hands this approach is much faster, we seem to get an image update in <50ms even when using the Malaria example, and despite it rescaling all channels each time. I think it's promising.