  
      # transform image
      interpolators = get_matrix_scaling(mat)
      retval = cv2.warpAffine(image, mat, (size, size), flags=interpolators[0])
      logger.trace("transformed matrix: %s, final image shape: %s", mat, image.shape)
      return retval
  
  
  def get_adjusted_center(image_size: int,
                          source_offset: np.ndarray,
 
</s> remove         logger.trace("invert: %s, Original points: %s, transformed points: %s",
 </s> add         logger.trace("invert: %s, Original points: %s, transformed points: %s",  # type: ignore </s> remove     logger.trace("image shape: %s, matrix: %s, size: %s. padding: %s",
 </s> add     logger.trace("image shape: %s, matrix: %s, size: %s. padding: %s",  # type: ignore </s> remove def transform_image(image, matrix, size, padding=0):
 </s> add def transform_image(image: np.ndarray,
                    matrix: np.ndarray,
                    size: int,
                    padding: int = 0) -> np.ndarray: </s> remove             logger.trace("original matrix: %s, new matrix: %s", self._matrices["legacy"], matrix)
 </s> add             logger.trace("original matrix: %s, new matrix: %s",  # type: ignore
                         self._matrices["legacy"], matrix) </s> remove     def _convert_centering(self, image):
 </s> add     def _convert_centering(self, image: np.ndarray) -> np.ndarray:
    logger.trace("transformed matrix: %s, final image shape: %s",  # type: ignore
                 mat, image.shape)
  
      # transform image
      interpolators = get_matrix_scaling(mat)
      retval = cv2.warpAffine(image, mat, (size, size), flags=interpolators[0])
    logger.trace("transformed matrix: %s, final image shape: %s",  # type: ignore
                 mat, image.shape)
      return retval
  
  
  def get_adjusted_center(image_size: int,
                          source_offset: np.ndarray,
keep keep keep keep replace keep keep keep keep keep
 lib.align.aligned_face updates
  - Typing
  - Legacy support for pre-aligned faces
  - Coverage support for pre-aligned faces
  - Standardized retrieval of sub-crops 
lib/align/aligned_face.py