How to erase label map using paint filter and paint widget

Hello,

in following example I see there is a way to paint on label map. What about erase tools? I was analyzing source of paint filter and I noticed that buffer is filled with ones e.g. in line 97.

Does this mean that in current implementation there is no way to erase created label map with e.g. paint widget? If it is possible and I missed something how can I use such feature.

Thanks

Hi, the example doesn’t support erasing, but erasing can be done by setting the label value of the paint filter to zero.

Oh, I see now. I’ve been trying to use .setLabel() before, but it turned out I did something wrong.

Thanks