plotEdgeAz(test_results, no_lines=5, no_figs=1, save_img_file_path=None, plot_show=False)¶
This function is used to generate plots of the image with its azimuth It can generate three figures or one. For three figures, that include the input image, the hough transform space and the input images with detected lines. For single image, it only outputs the input image with detected lines.
unit8) – 8-bit input image. This variable represents the predicted images from the segmentation model. Hence the dimension must be [a,b,c,d] where [a] is the number of images, [b,c] are the dimensions of the image - 640 x 640 in this case and [d] is 3 - RGB
int) – default is 10. This variable tells the function the number of dominant lines it should examine.
int) – 1 or 3. If the number of figs is 1, it outputs the mask with Hough lines and the predicted azimuth. However, if the number of lines is 3, it gives three plots.
The input image,
Hough transform search space
Unput image with houghlines and the predicted azimuth
string) – You can pass as input the location to save the plots
boolean) – If False, it will supress the plot as an output and just save the plots in a folder
Plot of the masked image, with detected Hough Lines and azimuth