Exemplo n.º 1
0
        future_snake = future_confidence[1]
        snake_array.append(future_snake)

    if start_from_initial:
        Contours.save_snakes(snake_array,
                             image,
                             previous_line,
                             title,
                             destination,
                             display,
                             failed,
                             scale=(1 / scale))
    else:
        Contours.save_snakes(snake_array,
                             image,
                             previous_line,
                             title,
                             destination,
                             display,
                             failed,
                             initial_label="Previous Snake",
                             scale=(1 / scale))

        if not failed:
            previous_line = snake

    Contours.save_xyz_uv(Contours.scale_line(snake, 1 / scale), homogmatrix,
                         cam, str(imn[0]), destination)

print '\n\nFinished'