transform ========= .. py:module:: transform Classes ------- .. toctree:: :hidden: /autoapi/transform/Resize /autoapi/transform/NormalizeImage /autoapi/transform/PrepareForNet /autoapi/transform/Crop .. autoapisummary:: transform.Resize transform.NormalizeImage transform.PrepareForNet transform.Crop Functions --------- .. autoapisummary:: transform.apply_min_size Module Contents --------------- .. py:function:: apply_min_size(sample, size, image_interpolation_method=cv2.INTER_AREA) Rezise the sample to ensure the given size. Keeps aspect ratio. :param sample: sample :type sample: dict :param size: image size :type size: tuple :returns: new size :rtype: tuple