gr.push(imMask);
imMask = (Gray8Image) gr.getFront();
}
// Stretch imMask to original image size; this is the result
Gray8RectStretch grs = new Gray8RectStretch(image.getWidth(), image.getHeight());
grs.push(imMask);
super.setOutput(grs.getFront());
}
/**
* Get the rectangles where the detect returned true