-
- All Known Implementing Classes:
- ImageDistortBasic, ImageDistortBasic_IL, ImageDistortBasic_SB, ImageDistortCache_SB, ImplImageDistort_F32, ImplImageDistort_I16, ImplImageDistort_I8, ImplImageDistort_IL_F32, ImplImageDistort_IL_U8, ImplImageDistort_PL, ImplImageDistort_S32, ImplImageDistortCache_F32, ImplImageDistortCache_I16, ImplImageDistortCache_I8, ImplImageDistortCache_S32
public interface ImageDistort<Input extends ImageBase,Output extends ImageBase>Copies an image onto another image while applying a transform to the pixel coordinates. Pixels outside the source image can be handled using the interpolations border or by simply skipping them. This behavior is set by calling thesetRenderAll(boolean)flag. By Default it will render the entire image, even if pixel is outside the source image.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description voidapply(Input srcImg, Output dstImg)Applies the transform to the entire destination image.voidapply(Input srcImg, Output dstImg, int dstX0, int dstY0, int dstX1, int dstY1)Applies the transform to only the specified region inside the destination image.booleangetRenderAll()Returns the render all flagvoidsetModel(PixelTransform_F32 dstToSrc)Specifies how pixel coordinates are transformed from the destination to source images.voidsetRenderAll(boolean renderAll)Specifies if the entire output image should be rendered, even if mapping to the source image is outside the source image.
-
-
-
Method Detail
-
setModel
void setModel(PixelTransform_F32 dstToSrc)
Specifies how pixel coordinates are transformed from the destination to source images.- Parameters:
dstToSrc- Pixel coordinate transformation.
-
apply
void apply(Input srcImg, Output dstImg)
Applies the transform to the entire destination image.- Parameters:
srcImg- Input image. Not modified.dstImg- Output image. Modified.
-
apply
void apply(Input srcImg, Output dstImg, int dstX0, int dstY0, int dstX1, int dstY1)
Applies the transform to only the specified region inside the destination image.- Parameters:
srcImg- Input image. Not modified.dstImg- Output image. Modified.dstX0- Left most crop boundary. Inclusive.dstY0- Top most crop boundary. Inclusive.dstX1- Right most crop boundary. Exclusive.dstY1- Bottom most crop boundary. Exclusive.
-
setRenderAll
void setRenderAll(boolean renderAll)
Specifies if the entire output image should be rendered, even if mapping to the source image is outside the source image.- Parameters:
renderAll- true to render all pixels or false only ones inside the source image
-
getRenderAll
boolean getRenderAll()
Returns the render all flag- Returns:
- render all flag
-
-
DataMelt 3.0 © DataMelt by jWork.ORG