public final class NGIP extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
NGIP.FFTResult
Represents fast Fourier transform results.
|
| Modifier and Type | Method and Description |
|---|---|
static com.neurotec.images.NImage |
adjustBrightnessContrast(com.neurotec.images.NImage image,
double brightness,
double contrast)
Sets brightness and contrast values of the specified image to specified values and writes the result to a new image.
|
static void |
adjustBrightnessContrast(com.neurotec.images.NImage image,
com.neurotec.images.NImage dstImage,
double brightness,
double contrast)
Sets brightness and contrast values of the specified image to specified values and writes the result to another specified image.
|
static void |
adjustBrightnessContrastSame(com.neurotec.images.NImage image,
double brightness,
double contrast)
Sets brightness and contrast values of the specified image to specified values and writes the result to the same image.
|
static void |
applyMaskToSpectrum(com.neurotec.images.NImage srcReal,
com.neurotec.images.NImage srcImaginary,
com.neurotec.images.NImage mask)
Applies a grayscale mask to Fourier transform spectrum.
|
static com.neurotec.images.NImage |
createMagnitudeFromSpectrum(com.neurotec.images.NImage srcReal,
com.neurotec.images.NImage srcImaginary)
Creates a magnitude image from image spectrum.
|
static NGIP.FFTResult |
fft(com.neurotec.images.NImage src)
Applies fast Fourier transform to the specified image and writes the result to FFTResult object.
|
static Dimension |
fftGetOptimalSize(com.neurotec.images.NImage src)
Gets the optimal size of fast Fourier transform for the specified image.
|
static com.neurotec.images.NImage |
ifft(com.neurotec.images.NImage srcReal,
com.neurotec.images.NImage srcImaginary)
Applies inverse fast Fourier transform to the specified image and writes the result to a new image.
|
static com.neurotec.images.NImage |
invert(com.neurotec.images.NImage image)
Inverts the colors of the specified grayscale image and writes the result to another image.
|
static void |
invert(com.neurotec.images.NImage image,
com.neurotec.images.NImage dstImage)
Inverts the colors of the specified grayscale image and writes the result to another specified image.
|
static void |
invertSame(com.neurotec.images.NImage image)
Inverts the colors of the specified grayscale image and writes the result to the same image.
|
static com.neurotec.lang.NType |
nativeTypeOf()
Rertrieves a function which retrieves a NType object for the enclosing type.
|
static com.neurotec.images.NImage |
rotatedCopy(com.neurotec.images.NImage image,
int centerX,
int centerY,
double angle,
int radiusX,
int radiusY,
int backgroundColor,
int resultWidth,
int resultHeight,
int resultStride)
Cuts rectangle image from original image.
|
static com.neurotec.images.NImage |
rotatedCopy(com.neurotec.images.NImage image,
int centerX,
int centerY,
double angle,
int radiusX,
int radiusY,
int backgroundColor,
int resultWidth,
int resultHeight,
long resultStride)
Cuts rectangle image from original image.
|
static void |
rotatedCopy(com.neurotec.images.NImage image,
com.neurotec.images.NImage dstImage,
int centerX,
int centerY,
double angle,
int radiusX,
int radiusY,
int backgroundColor)
Cuts image from original image.
|
static com.neurotec.images.NImage |
scale(com.neurotec.images.NImage srcImage,
int srcLeft,
int srcTop,
int srcWidth,
int srcHeight,
int dstWidth,
int dstHeight,
com.neurotec.geometry.NInterpolationMode interpolationMode)
Sets width and height of a specified part of the specified image to specified values and writes the result to a new image.
|
static void |
scale(com.neurotec.images.NImage srcImage,
int srcLeft,
int srcTop,
int srcWidth,
int srcHeight,
com.neurotec.images.NImage dstImage,
int dstLeft,
int dstTop,
int dstWidth,
int dstHeight,
com.neurotec.geometry.NInterpolationMode interpolationMode)
Sets width and height of a specified part of the specified image to specified values and writes the result to the specified image.
|
static com.neurotec.images.NImage |
scale(com.neurotec.images.NImage srcImage,
int dstWidth,
int dstHeight,
com.neurotec.geometry.NInterpolationMode interpolationMode)
Sets width and height of the specified image to specified values and writes the result to a new image.
|
static void |
scale(com.neurotec.images.NImage srcImage,
com.neurotec.images.NImage dstImage,
int dstLeft,
int dstTop,
int dstWidth,
int dstHeight,
com.neurotec.geometry.NInterpolationMode interpolationMode)
Sets width and height of the specified image to specified values and writes the result to the specified image.
|
public static com.neurotec.lang.NType nativeTypeOf()
public static com.neurotec.images.NImage invert(com.neurotec.images.NImage image)
image - The original image.public static void invert(com.neurotec.images.NImage image,
com.neurotec.images.NImage dstImage)
image - The original image.dstImage - The result image.public static void invertSame(com.neurotec.images.NImage image)
image - The original image.public static com.neurotec.images.NImage scale(com.neurotec.images.NImage srcImage,
int srcLeft,
int srcTop,
int srcWidth,
int srcHeight,
int dstWidth,
int dstHeight,
com.neurotec.geometry.NInterpolationMode interpolationMode)
srcImage - The original image.srcLeft - Left coordinate of the original image.srcTop - Top coordinate of the original image.srcWidth - Width of the original image.srcHeight - Height of the original image.dstWidth - New width value.dstHeight - New height value.interpolationMode - The interpolation mode.public static com.neurotec.images.NImage scale(com.neurotec.images.NImage srcImage,
int dstWidth,
int dstHeight,
com.neurotec.geometry.NInterpolationMode interpolationMode)
srcImage - The original image.dstWidth - New width value.dstHeight - New height value.interpolationMode - The interpolation mode.public static void scale(com.neurotec.images.NImage srcImage,
int srcLeft,
int srcTop,
int srcWidth,
int srcHeight,
com.neurotec.images.NImage dstImage,
int dstLeft,
int dstTop,
int dstWidth,
int dstHeight,
com.neurotec.geometry.NInterpolationMode interpolationMode)
srcImage - The original image.srcLeft - Left coordinate of the original image.srcTop - Top coordinate of the original image.srcWidth - Width of the original image.srcHeight - Height of the original image.dstImage - The result image.dstLeft - Left coordinate of the result image.dstTop - Top coordinate of the result image.dstWidth - New width value.dstHeight - New height value.interpolationMode - The interpolation mode.public static void scale(com.neurotec.images.NImage srcImage,
com.neurotec.images.NImage dstImage,
int dstLeft,
int dstTop,
int dstWidth,
int dstHeight,
com.neurotec.geometry.NInterpolationMode interpolationMode)
srcImage - The original image.dstImage - The result image.dstLeft - Left coordinate of the result image.dstTop - Top coordinate of the result image.dstWidth - New width value.dstHeight - New height value.interpolationMode - The interpolation mode.public static com.neurotec.images.NImage adjustBrightnessContrast(com.neurotec.images.NImage image,
double brightness,
double contrast)
image - The original image.brightness - New brightness value.contrast - New contrast value.public static void adjustBrightnessContrast(com.neurotec.images.NImage image,
com.neurotec.images.NImage dstImage,
double brightness,
double contrast)
image - The original image.dstImage - The result image.brightness - New brightness value.contrast - New contrast value.public static void adjustBrightnessContrastSame(com.neurotec.images.NImage image,
double brightness,
double contrast)
image - The original image.brightness - New brightness value.contrast - New contrast value.public static com.neurotec.images.NImage ifft(com.neurotec.images.NImage srcReal,
com.neurotec.images.NImage srcImaginary)
srcReal - Real image spectrum.srcImaginary - Imaginary image spectrum.public static NGIP.FFTResult fft(com.neurotec.images.NImage src)
src - The source image.public static void applyMaskToSpectrum(com.neurotec.images.NImage srcReal,
com.neurotec.images.NImage srcImaginary,
com.neurotec.images.NImage mask)
srcReal - Real image spectrum.srcImaginary - Imaginary image spectrum.mask - The mask image.public static com.neurotec.images.NImage createMagnitudeFromSpectrum(com.neurotec.images.NImage srcReal,
com.neurotec.images.NImage srcImaginary)
srcReal - Real image spectrum.srcImaginary - Imaginary image spectrum.public static Dimension fftGetOptimalSize(com.neurotec.images.NImage src)
src - The image.public static void rotatedCopy(com.neurotec.images.NImage image,
com.neurotec.images.NImage dstImage,
int centerX,
int centerY,
double angle,
int radiusX,
int radiusY,
int backgroundColor)
image - The original image.dstImage - The result image.centerX - Image center x coordinate.centerY - Image center y coordinate.angle - Image rotation angle in radians.radiusX - Image x radius.radiusY - Image y radius.backgroundColor - Image background color.public static com.neurotec.images.NImage rotatedCopy(com.neurotec.images.NImage image,
int centerX,
int centerY,
double angle,
int radiusX,
int radiusY,
int backgroundColor,
int resultWidth,
int resultHeight,
int resultStride)
image - The original image.centerX - Image center x coordinate.centerY - Image center y coordinate.angle - Image rotation angle in radians.radiusX - Image x radius.radiusY - Image y radius.backgroundColor - Image background color.resultWidth - Result image width.resultHeight - Result image height.resultStride - Result stride.public static com.neurotec.images.NImage rotatedCopy(com.neurotec.images.NImage image,
int centerX,
int centerY,
double angle,
int radiusX,
int radiusY,
int backgroundColor,
int resultWidth,
int resultHeight,
long resultStride)
image - The original image.centerX - Image center x coordinate.centerY - Image center y coordinate.angle - Image rotation angle in radians.radiusX - Image x radius.radiusY - Image y radius.backgroundColor - Image background color.resultWidth - Result image width.resultHeight - Result image height.resultStride - Result stride.Copyright © 2016 Neurotechnology. All rights reserved.