public class ProjectiveColorTransformerCL extends ProjectiveColorTransformer implements ImageTransformerCL
ProjectiveColorTransformer.Parameters
ImageTransformerCL.InputData, ImageTransformerCL.OutputData
ImageTransformer.Data, ImageTransformer.Parameters
Modifier and Type | Field and Description |
---|---|
protected JavaCVCL |
context |
protected CLBuffer<FloatBuffer> |
HBuffer |
protected CLBuffer<FloatBuffer> |
XBuffer |
numBiases, numGains, temp3x1, X, X2, X24x4
fillColor, H, H3x3, invK1, invK2, K1, K2, kernelData, n, pts4x1, R, referencePoints1, referencePoints2, t
Constructor and Description |
---|
ProjectiveColorTransformerCL(JavaCVCL context,
CvMat K1,
CvMat K2,
CvMat R,
CvMat t,
CvMat n,
double[] referencePoints1,
double[] referencePoints2,
CvMat X,
int numGains,
int numBiases) |
Modifier and Type | Method and Description |
---|---|
JavaCVCL |
getContext() |
protected void |
prepareColorTransforms(CLBuffer XBuffer,
int pyramidLevel,
ImageTransformer.Parameters[] parameters,
boolean[] inverses) |
protected void |
prepareHomographies(CLBuffer HBuffer,
int pyramidLevel,
ImageTransformer.Parameters[] parameters,
boolean[] inverses) |
void |
transform(CLImage2d srcImg,
CLImage2d subImg,
CLImage2d srcDotImg,
CLImage2d transImg,
CLImage2d dstImg,
CLImage2d maskImg,
ImageTransformer.Parameters[] parameters,
boolean[] inverses,
ImageTransformerCL.InputData inputData,
ImageTransformerCL.OutputData outputData) |
createParameters, getNumBiases, getNumGains, getX, prepareColorTransform, transform, transformColor
getFillColor, getInvK1, getInvK2, getK1, getK2, getN, getR, getReferencePoints1, getReferencePoints2, getT, prepareHomography, setFillColor, transform, transform
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createParameters, transform, transform
protected final JavaCVCL context
protected final CLBuffer<FloatBuffer> HBuffer
protected final CLBuffer<FloatBuffer> XBuffer
public JavaCVCL getContext()
getContext
in interface ImageTransformerCL
protected void prepareHomographies(CLBuffer HBuffer, int pyramidLevel, ImageTransformer.Parameters[] parameters, boolean[] inverses)
protected void prepareColorTransforms(CLBuffer XBuffer, int pyramidLevel, ImageTransformer.Parameters[] parameters, boolean[] inverses)
public void transform(CLImage2d srcImg, CLImage2d subImg, CLImage2d srcDotImg, CLImage2d transImg, CLImage2d dstImg, CLImage2d maskImg, ImageTransformer.Parameters[] parameters, boolean[] inverses, ImageTransformerCL.InputData inputData, ImageTransformerCL.OutputData outputData)
transform
in interface ImageTransformerCL
Copyright © 2024. All rights reserved.