pyvale.sensorsim.imagetools module

class EImageType(*values)[source]

Bases: Enum

TIFF = '.tiff'
BMP = '.bmp'
class ImageTools[source]

Bases: object

static edge_function(vert_a, vert_b, vert_c)[source]

Calculate the signed 2D edge function for a point or point array.

static elem_bound_box_low(coord_min)[source]

Return lower integer element bounds clipped to image index zero.

static elem_bound_box_high(coord_max, image_px)[source]

Return upper integer element bounds clipped to the image extent.

static load_image_rgb(im_path)[source]
static load_image_greyscale(im_path)[source]
static save_image(save_file, image, image_type, bits=16)[source]
static scale_digitise_save(save_file, image, image_type, bits=16, min_frac=0.0, max_frac=1.0, background=0.5)[source]
static scale(image, min_frac=0.0, max_frac=1.0)[source]
static digitise(image, bits=16, min_frac=0.0, max_frac=1.0, background_frac=0.5)[source]
static add_noise(image)[source]
static get_num_str(im_num, width, cam_num=-1)[source]
static get_save_name(cam_num, frame_num, field_num, cam_width=2, frame_width=4, field_width=2)[source]