(self, crop, sz)
return rz
Resize cropped image
        :param crop: crop
        :param sz: size
        :return: resized image
Resize cropped image
        :param crop: crop
        :param sz: size
        :return: resized image
Resize cropped image : param crop : crop : param sz : size : return : resized image
def resizeCrop(self, crop, sz):
        """
        Resize cropped image
        :param crop: crop
        :param sz: size
        :return: resized image
        """
        if self.resizeMethod == self.RESIZE_CV2_NN:
            rz = cv2.resize(crop, sz, interpolation=cv2.INTER_NEAREST)
        elif self.resizeMethod == self.RESIZE_BILINEAR:
            rz = self.bilinearResize(crop, sz, self.getNDValue())
        elif self.resizeMethod == self.RESIZE_CV2_LINEAR:
            rz = cv2.resize(crop, sz, interpolation=cv2.INTER_LINEAR)
        else:
            raise NotImplementedError("Unknown resize method!")
        return rz
def resizeCrop ( self , crop , sz ) : if self . resizeMethod == self . RESIZE_CV2_NN : rz = cv2 . resize ( crop , sz , interpolation = cv2 . INTER_NEAREST ) elif self . resizeMethod == self . RESIZE_BILINEAR : rz = self . bilinearResize ( crop , sz , self . getNDValue ( ) ) elif self . resizeMethod == self . RESIZE_CV2_LINEAR : rz = cv2 . resize ( crop , sz , interpolation = cv2 . INTER_LINEAR ) else : raise NotImplementedError ( "Unknown resize method!" ) return rz