################################################################################################### # Procedure to detect the cover orientation ################################################################################################### img.backgroundEnabled=False line = load_image("{images}/line.png", title="Line") ip = get_image() smooth(ip) #bandpass_filter(ip, 10, 1000) edges(ip) invert(ip) auto_threshold(ip, method = "MaxEntropy") #binary_erode(ip, dark_background=True) renderer = show_panel(ip.bufferedImage) op = op_fft(ip, line, "correlate") renderer = show_panel(op.bufferedImage) #image_fft(ip) """ (r,output) = analyse_particles(ip, 200000,500000, fill_holes = True, exclude_edges = False, print_table=True, output_image = "outlines", minCirc = 0.3 , maxCirc = 1.0) show_panel(output.bufferedImage) """