// If original_img is True then also plot the original image with the rest of them
if original_img:
converted_gray_img = cv2.cvtColor(gray_img, cv2.COLOR_GRAY2RGB)
plotting_img = np.hstack([converted_gray_img, plotting_img])
plotting_img = resize(plotting_img, resize_x=.5, resize_y=.5)
// Reset debug mode
After Change
if grid_img:
// Compile images together into one
top_row = np.hstack([labeled_imgs[0], labeled_imgs[1]])
bot_row = np.hstack([labeled_imgs[2], labeled_imgs[3]])
plotting_img = np.vstack([top_row, bot_row])
plotting_img = resize(plotting_img, resize_x=.5, resize_y=.5)
if params.debug == "print":