ArtifactGridTransformExt extension
Extension that adds grid transformation methods to Artifact.
- on
Methods
-
createNormalizeMatrix(
int desiredWidth, int desiredHeight) → Artifact -
Available on Artifact, provided by the ArtifactGridTransformExt extension
Creates a new Artifact with the specified dimensions by resizing. -
extractSubGrid(
{required IntRect rect}) → Artifact -
Available on Artifact, provided by the ArtifactGridTransformExt extension
Extracts a sub-grid from a larger binary image matrix. -
mergeArtifact(
Artifact toMerge) → void -
Available on Artifact, provided by the ArtifactGridTransformExt extension
Merges the current artifact with another artifact in-place. -
padTopBottom(
{required int paddingTop, required int paddingBottom}) → void -
Available on Artifact, provided by the ArtifactGridTransformExt extension
Adds padding to the top and bottom of the matrix. -
trim(
) → Artifact -
Available on Artifact, provided by the ArtifactGridTransformExt extension
Trims the matrix by removing empty rows and columns from all sides.