perform_preprocessing module

class perform_preprocessing.Preprocessor

Bases: object

angle(img)
center_points(img)

The result is an binary image with a line of 1px width that relates to the center points/skeleton of the aspragus.

perform_preprocessing(initfile, outpath, startIdx, stopIdx, outfiletype, with_background, rotate)
preprocess(triple, outpath, file_id, outfiletype='png', with_background=False, rotate=False)
remove_background(img_array)
remove_smaller_objects(image)
report_progress()
rotate(img)
perform_preprocessing.print_usage()