Package qupath.lib.objects.utils
Interface ObjectProcessor
- All Known Implementing Classes:
ObjectMerger,OverlapFixer
public interface ObjectProcessor
Minimal interface for processing one or more objects.
This is intended for tasks such as merging, splitting, filtering, etc.
-
Method Summary
Modifier and TypeMethodDescriptiondefault ObjectProcessorandThen(ObjectProcessor after) Create a new ObjectProcessor that applies (at least) two processors sequentially.process(Collection<? extends PathObject> input) Process a collection of objects and return the result.
-
Method Details
-
process
Process a collection of objects and return the result.- Parameters:
input- the input objects- Returns:
- the output objects; this should always be a new collection (even if it contains the same objects)
-
andThen
Create a new ObjectProcessor that applies (at least) two processors sequentially.- Parameters:
after- the processor to apply next- Returns:
- a processor that applies this processor first, and then the given processor
-