Datasets

class datasets.imm.IMMPoints(filename=None, points_list=None)[source]

Accepts IMM datapoint file which can be shown or used

get_image()[source]

Get the image corresponding to the filename If filename == image_1.asf, then we read image_1.jpg from disk and return this to the user.

Returns:
ndarray image
get_points()[source]

Get the flattened list of points

Returns:
ndarray. flattened array of points, see AAMPoints for more information.
import_file(filename)[source]

Import an .asf filename. Load the points into a list of points and store the relative path to image file.

Returns:
ndarray(float). Numpy array of landmark locations as stated in the .asf files.
show(window_name='image')[source]

show the image and datapoints on the image

datasets.imm.get_imm_image_with_landmarks(filename)[source]

Get Points with image and landmarks/points

Args:
filename(fullpath): .asf file
Returns:
image, points
datasets.imm.get_imm_points(files)[source]

This function does something.

Args:
files (array): Array of .asf full or relative path to .asf files.
Returns:
ndarray. Array of landmarks.