public class ImageProcess
extends java.lang.Object
Constructor and Description |
---|
ImageProcess() |
Modifier and Type | Method and Description |
---|---|
static void |
autoRawDefectivePixelCorrect(byte[] inputBuffer,
int width,
int height,
int bitNum,
int mode)
Auto raw defective pixel correct,Support image from Raw8 to Raw16, the bit number is actual bit number, when it is more than 8, the actual bit
can be every number between 9 to 16.
|
static void |
calcCameraLutBuffer(int contrastParam,
double gamma,
int lightness,
byte[] lutBuffer,
int[] lutLength)
calculating lookup table of camera
|
static int |
getSystem(int systemParam)
Set system parameter
|
static void |
imageLutProcess(byte[] imageBuffer,
int nWidth,
int nHeight,
byte[] lutBuffer,
int nLutBufferLength)
only for meice use to set lut
|
static void |
readLutFile(byte[] lutFilePath,
byte[] lutBuffer,
int[] lutBufferLength)
read lut file
|
static void |
saturation(byte[] inputBuffer,
byte[] outputBuffer,
int imageSize,
int factor)
Saturation adjustment (RGB24)
|
static void |
setSystem(int systemParam,
int value)
Set system parameter
|
static void |
sharpen24B(byte[] inputBuffer,
byte[] outputBuffer,
int width,
int height,
float factor)
Sharpen adjustment (RGB24)
|
static void |
staticDefectCorrection(byte[] inputBuffer,
byte[] outputBuffer,
GxIJNI.StaticDefectCorrection defectCorrection,
byte[] defectBuffer,
int defectBufferSize)
Image defect pixel correction
|
public static void staticDefectCorrection(byte[] inputBuffer, byte[] outputBuffer, GxIJNI.StaticDefectCorrection defectCorrection, byte[] defectBuffer, int defectBufferSize) throws ExceptionSet
inputBuffer
- [in] Image inoutputBuffer
- [out] Image outdefectCorrection
- [in] Image parameter used to do defect correctiondefectBuffer
- [in] Defect Pixel position file bufferdefectBufferSize
- [in] Defect Pixel position file buffer sizeExceptionSet
public static void autoRawDefectivePixelCorrect(byte[] inputBuffer, int width, int height, int bitNum, int mode) throws ExceptionSet
inputBuffer
- [in,out]Raw image bufferwidth
- [in]image widthheight
- [in]image heightbitNum
- [in]image bit number (for example:if image 10bit, nBitNum = 10, if image 12bit,nBitNum = 12,range:8 ~ 16)mode
- no useExceptionSet
public static void sharpen24B(byte[] inputBuffer, byte[] outputBuffer, int width, int height, float factor) throws ExceptionSet
inputBuffer
- [in] input bufferoutputBuffer
- [out]output bufferwidth
- [in] image widthheight
- [in] image heightfactor
- [in] factor,range(0.1~5.0)ExceptionSet
public static void saturation(byte[] inputBuffer, byte[] outputBuffer, int imageSize, int factor) throws ExceptionSet
inputBuffer
- [in] input bufferoutputBuffer
- [out]output bufferimageSize
- [in] image size (width * height)factor
- [in] factor,range(0 ~ 128)ExceptionSet
public static void calcCameraLutBuffer(int contrastParam, double gamma, int lightness, byte[] lutBuffer, int[] lutLength) throws ExceptionSet
contrastParam
- [in] contrast param,range(-50~100)gamma
- [in] gamma param,range(0.1~10)lightness
- [in] lightness param,range(-150~150)lutBuffer
- [in&out] lookup tablelutLength
- [in] lookup table length(unit:byte)ExceptionSet
public static void setSystem(int systemParam, int value) throws ExceptionSet
emSystemParam
- [in] system parametervalue
- [in] system valueExceptionSet
public static int getSystem(int systemParam) throws ExceptionSet
emSystemParam
- [in] system parameterExceptionSet
public static void readLutFile(byte[] lutFilePath, byte[] lutBuffer, int[] lutBufferLength) throws ExceptionSet
lutFilePath
- [in] Lut file path. Lut file(xxx.lut) can be obtained from Lut Create Tool Plugin,which can be get by select Plugin->Lut Create Tool Plugin from the menu bar in GalaxyView.lutBuffer
- [in&out] Lookup table. Users need to apply for memory in advance.The memory size is also lookup table length(nLutLength),should be obtained through the interface GXGetBufferLength,
e.g. GXGetBufferLength(m_hDevice, GX_BUFFER_LUT_VALUEALL,&nLutLength),lutBufferLength
- [in] Lookup table length(unit:byte),which should be obtained through the interface GXGetBufferLength, e.g. GXGetBufferLength(m_hDevice, GX_BUFFER_LUT_VALUEALL,&nLutLength),ExceptionSet
public static void imageLutProcess(byte[] imageBuffer, int nWidth, int nHeight, byte[] lutBuffer, int nLutBufferLength) throws ExceptionSet
ExceptionSet