public abstract class ColorConverterBase extends StackProviderUnary
Note that internally the RGB image is reordered as BGR, as OpenCV expects this order, but this should not be performed externally by the user when calling this class, it is rather automatically taken care of.
i.e. please always pass the channels in a Stack
in RGB order.
Constructor and Description |
---|
ColorConverterBase() |
Modifier and Type | Method and Description |
---|---|
protected abstract int |
colorSpaceCode()
The color space conversion code to use from OpenCV, that defines the color-space to convert
to.
|
Stack |
createFromStack(Stack stackRGB)
Creates a
Stack given the entity provided by the delegate. |
get, getStack, setStack
getAsStack
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public Stack createFromStack(Stack stackRGB) throws ProvisionFailedException
StackProviderUnary
Stack
given the entity provided by the delegate.createFromStack
in class StackProviderUnary
stackRGB
- the entity provided by the delegate.Stack
that is returned by the provider.ProvisionFailedException
- if the provider cannot complete successfully.protected abstract int colorSpaceCode()
Assume that the inputted image is provided is a 3 channel stack in BGR order.
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.