Hi Goncalo,
I'm measuring activity in many (96) ROIs, using background subtraction -> RoiActivity to get a count of pixel changes between frames. But I want to ignore single pixels (noise). Currently I'm doing a fair hacky method:

Background subtraction -> FindContours (with minarea 1) -> DrawContours -> RoiActivity.
This works but it doesn't seem very efficient since I don't actually care about contours. Is there a simple way to remove single pixels? I couldn't find a Median filter and I'm not sure if Filter2D is what I want.
On a related note, will it be possible to get better tools for generating ROIs? Having to draw 96 boxes by hand is a hassle, and they aren't all the same size. On the plus side, despite these complaints Bonsai is working perfectly for this assay and I can't imagine doing my work without it :)
Cheers,
Eirinn