public interface BufferInterpolation extends IncrementableTask
| Modifier and Type | Field and Description |
|---|---|
static int |
INTERPOLATION_Bicubic |
static int |
INTERPOLATION_Bilinear |
static int |
INTERPOLATION_BSpline |
static int |
INTERPOLATION_InverseDistance |
static int |
INTERPOLATION_NearestNeighbour |
static int |
INTERPOLATION_Undefined |
| Modifier and Type | Method and Description |
|---|---|
Buffer |
adjustRasterBicubicSplineInterpolation(int w,
int h)
Ajusta el raster al ancho y alto solicitado ajustando con una interpolación de spline bicubica.
|
Buffer |
adjustRasterBilinearInterpolation(int w,
int h)
Ajusta el raster al ancho y alto solicitado ajustando con una interpolación bilineal.
|
Buffer |
adjustRasterBSplineInterpolation(int w,
int h)
Ajusta el raster al ancho y alto solicitado ajustando con una interpolación BSpline.
|
Buffer |
adjustRasterInverseDistanceInterpolation(int w,
int h)
Ajusta el raster al ancho y alto solicitado ajustando con una interpolación de distancia inversa.
|
Buffer |
adjustRasterNearestNeighbourInterpolation(int w,
int h)
Ajusta el raster al ancho y alto solicitado por el vecino más cercano.
|
int |
getPercent()
Obtiene el porcentaje del proceso de interpolacion
|
Buffer |
getSupersampledScrolledBilinearInterpolation(double[] superSampStep,
int w,
int h) |
Buffer |
getSupersampledScrolledNearestNeighbour(double[] superSampStep,
int w,
int h)
Get the supersampled buffer on a IRasterBuffer
|
getLog, isCancelable, isPausablesetPercentstatic final int INTERPOLATION_Undefined
static final int INTERPOLATION_NearestNeighbour
static final int INTERPOLATION_Bilinear
static final int INTERPOLATION_InverseDistance
static final int INTERPOLATION_Bicubic
static final int INTERPOLATION_BSpline
Buffer getSupersampledScrolledNearestNeighbour(double[] superSampStep, int w, int h) throws ProcessInterruptedException
ProcessInterruptedExceptionBuffer getSupersampledScrolledBilinearInterpolation(double[] superSampStep, int w, int h) throws ProcessInterruptedException
ProcessInterruptedExceptionBuffer adjustRasterNearestNeighbourInterpolation(int w, int h) throws ProcessInterruptedException
w - Nuevo anchoh - Nuevo altoProcessInterruptedExceptionBuffer adjustRasterBilinearInterpolation(int w, int h) throws ProcessInterruptedException
Para cada pixel del raster A:(x, y) obtiene el B:(x + 1, y), C:(x, y + 1), D:(x + 1, y + 1) Para cada valor del kernel se calcula un valor 'd' que es un peso dependiendo de su posición. Este peso depende de la posición del pixel destino dentro del origen. La posición del pixel destino en el origen es un valor decimal que puede ir de 0 a 1. Si está muy pegado a la esquina superior izquierda estará cercano a 0 y si está muy pegado a la esquina inferior derecha estará cercano a 1. Este valor está representado por 'dx' y 'dy'.
Los pesos aplicados son a
w - Nuevo ancho del buffer de salidah - Nuevo alto del buffer de salidaProcessInterruptedExceptionBuffer adjustRasterInverseDistanceInterpolation(int w, int h) throws ProcessInterruptedException
Para cada pixel del raster A:(x, y) obtiene el B:(x + 1, y), C:(x, y + 1), D:(x + 1, y + 1) Para cada valor del kernel se calcula un valor 'd' que es un peso dependiendo de su posición. Este peso será dependiente de la posición del pixel destino dentro del origen. La posición del pixel destino en el origen es un valor decimal que puede ir de 0 a 1. Si está muy pegado a la esquina superior izquierda estará cercano a 0 y si está muy pegado a la esquina inferior derecha estará cercano a 1. Este valor está representado por 'dx' y 'dy'. En este caso, y a diferencia del método bilinear el peso vendrá representado por la inversa de la distancia entre la posición dentro del pixel y el origen del mismo.
Los pesos aplicados son a
w - Nuevo ancho del buffer de salidah - Nuevo alto del buffer de salidaProcessInterruptedExceptionBuffer adjustRasterBSplineInterpolation(int w, int h) throws ProcessInterruptedException
w - Nuevo anchoh - Nuevo altoProcessInterruptedExceptionBuffer adjustRasterBicubicSplineInterpolation(int w, int h) throws ProcessInterruptedException
w - Nuevo anchoh - Nuevo altoProcessInterruptedExceptionint getPercent()
getPercent in interface BaseIncrementableTask