NI Vision Remove Small Objects

I have been experimenting with my team’s vision program using the NI Vision Assistant program. I have successfully implemented everything in our team’s vision algorithm, except for one function which I can’t find. It was listed as “Advanced Morphology: Remove Small Objects” Does anyone know how to implement this in Java.

Do you just need to keep objects within a certian pixel range?

Yes, but I can’t figure out how to do that either with the Native functions. To be honest, the only NI Vision native library function I have gotten working is the Convex hull function.