public class DefaultImgFactoryHeuristic extends Object implements ImgFactoryHeuristic
ImgFactoryHeuristicimplementation. Uses the following heuristic to select a factory:
NB: ImgMode.CELL is always satisfied. Thus to avoid a particular ImgMode, provide a list excluding the undesired types that includes ImgMode.CELL last.
|Constructor and Description|
|Modifier and Type||Method and Description|
public <T extends NativeType<T>> ImgFactory<T> createFactory(Metadata m, SCIFIOConfig.ImgMode imgModes, T type) throws IncompatibleTypeException
m- Metadata describing the image
imgModes- An ordered list of ImgModes. Each should be investigated in the order they appear.
IncompatibleTypeException- If an ImgFactory of type T can't be created matching the type described by the Metadata.
Copyright © 2015–2017 SCIFIO. All rights reserved.