/// Rectify a detection rectangle for a given aspect mode.
/// <param name="rect">Input rectangle in normalized coordinates.</param>
/// <param name="featureType">Feature image type used for aspect scaling.</param>
/// <param name="imageWidth">Original image width before aspect scaling.</param>
/// <param name="imageHeight">Original image height before aspect scaling.</param>
/// <param name="aspectMode">Aspect mode used for scaling.</param>
/// <returns>Rectified detection rectangle in the original image space.</returns>
static Rect RectifyAspect (
in MLImageType featureType,
in MLImageFeature.AspectMode aspectMode