Package whistlesAndMoans
Class DiscardingFragmenter
java.lang.Object
whistlesAndMoans.DiscardingFragmenter
- All Implemented Interfaces:
RegionFragmenter
- Direct Known Subclasses:
FragmentingFragmenter
Whistle fragmenter which completely discards all regions
which have more than one peak in any slice.
- Author:
- Doug Gillespie
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
fragmentRegion
(ConnectedRegion connectedRegion) Fragment a connected regiongetFragment
(int fragment) Get a specific fragmentint
Get the number of fragments
-
Constructor Details
-
DiscardingFragmenter
public DiscardingFragmenter()
-
-
Method Details
-
fragmentRegion
Description copied from interface:RegionFragmenter
Fragment a connected region- Specified by:
fragmentRegion
in interfaceRegionFragmenter
- Parameters:
connectedRegion
- region to fragment- Returns:
- number of fragments.
-
getFragment
Description copied from interface:RegionFragmenter
Get a specific fragment- Specified by:
getFragment
in interfaceRegionFragmenter
- Parameters:
fragment
- fragment number (0 to getNumFragments);- Returns:
- the ith fragment
-
getNumFragments
public int getNumFragments()Description copied from interface:RegionFragmenter
Get the number of fragments- Specified by:
getNumFragments
in interfaceRegionFragmenter
- Returns:
- the number of fragments
-