Advertisement
Guest User

Untitled

a guest
Nov 13th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.62 KB | None | 0 0
  1. def find_block_transform(image, resized_image, x, y, block_size, stride):
  2.     '''Find best transformation for given rank block.
  3.    
  4.    Parameters
  5.    ----------
  6.    image : np.array
  7.        Source B/W image.
  8.  
  9.    resized_image: np.array
  10.        Resized source image.
  11.  
  12.    x, y: int, int
  13.        Coordinates of the rank block.
  14.    
  15.    block_size: int
  16.        Size of rank block.
  17.  
  18.    stride: int
  19.        Vertical and horizontal stride for domain block search.
  20.  
  21.    Returns
  22.    -------
  23.    best_transform: BlockTransform
  24.        Best transformation.
  25.    '''
  26.    
  27.     # YOUR CODE HERE
  28.  
  29.     return best_transform
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement