|
NNEngine
|


Public Attributes | |
| int | destinationWidth |
| int | destinationHeight |
Protected Member Functions | |
| virtual void | BeginPlay () override |
| void | calcAspectRatio (UTexture *inputTexture, FVector2D &uvScalingFactor) |
| UTextureRenderTarget2D * | resize (UTexture *inputTexture, FVector2D &uvScalingFactor, const bool doFlipImage=false, const ETextureProcessImageRotation doRotateImage=ETextureProcessImageRotation::None) |
| UTextureRenderTarget2D * | renderAffineTransformedFrame (UTexture *inputTexture, const FAffineMat2D &inverseNormalizedAffineMat, const bool doFlipImage, const ETextureProcessImageRotation doRotateImage) |
Base class for the compnents to precess UTexture
|
protected |
Calculate the aspect ratio of the image.
| inputTexture | Input image |
| uvScalingFactor | The scaling factor of the UV of the image to keep the aspect ratio of the image. X = 1 and Y > 1 for a landscape image. X > 1 and Y = 1 for a portrait image. |
|
protected |
Execute the affine transform, implemented by BP
| inputTexture | Original image |
| inverseNormalizedAffineMat | The matrix of inverse of the affine transform. The scales of original and destination images must be normalized to (1, 1). |
| doFlipImage | Whether to flip the image during resizing. |
| doRotateImage | Whether to rotate the image during resizing. |
|
protected |
Resize the image to (destinationHeight x destinationWidth) while maintaining the aspect ratio.
| inputTexture | Original image |
| uvScalingFactor | The scaling factor of the UV of the image to keep the aspect ratio of the image. X = 1 and Y > 1 for a landscape image. X > 1 and Y = 1 for a portrait image. |
| doFlipImage | Whether to flip the image during resizing. |
| doRotateImage | Whether to rotate the image during resizing. |
| int UTextureProcessComponentBase::destinationHeight |
The height of the image after processing
| int UTextureProcessComponentBase::destinationWidth |
The width of the image after processing