nanopyx.core.analysis.ccm_helper_functions

def check_even_square(image_arr):

Function used to check if an image array is an even square.

Parameters
  • image_arr: numpy array with shape (t, y, x)
Returns

bool, True if an image array is an even square

def get_closest_even_square_size(image_arr):

Function used to calculate the closest even square.

Parameters
  • image_arr: numpy array with shape (t, y, x); image to be cropped
Returns

int; value of dimensions to be used for cropping

def make_even_square(image_arr):

Function used to crop an image array into an even square.

Parameters
  • image_arr: numpy array with shape (t, y, x); image to be cropped
Returns

numpy array with shape (t, y, x)