Package boofcv.alg.interpolate
Interface InterpolateRectangle<T extends ImageGray<T>>
- All Known Implementing Classes:
BilinearRectangle_F32
,BilinearRectangle_S16
,BilinearRectangle_U8
,NearestNeighborRectangle_F32
public interface InterpolateRectangle<T extends ImageGray<T>>
Performs interpolation across a whole rectangular region inside the image. This can be significantly faster than
interpolating on a per-pixel basis.
-
Method Summary
Modifier and TypeMethodDescriptioncopy()
Creates new instance that's configured the same but completely decoupledCreates a copy that can be run in parallel with the original as long as the image isn't modifiedgetImage()
Returns the image which is being interpolated.Type of image it can processvoid
Copies a grid from the source image starting at the specified coordinate into the destination image.void
Change the image that is being interpolated.
-
Method Details
-
setImage
Change the image that is being interpolated.- Parameters:
image
- An image.
-
getImage
T getImage()Returns the image which is being interpolated.- Returns:
- A reference to the image being interpolated.
-
region
Copies a grid from the source image starting at the specified coordinate into the destination image. The 'dest' image must be within the original image.- Parameters:
tl_x
- upper left corner of the region in the image.tl_y
- upper left corner of the region in the image.dest
- Where the interpolated region is to be copied into
-
copyConcurrent
InterpolateRectangle<T> copyConcurrent()Creates a copy that can be run in parallel with the original as long as the image isn't modified -
copy
InterpolateRectangle<T> copy()Creates new instance that's configured the same but completely decoupled -
getImageType
Type of image it can process
-