graph_image: Construction of the graph corresponding to an image

Description Usage Arguments Examples

View source: R/graph_image.R

Description

graph_image returns length, width and intensity of an image where intensity corresponds to the three main colors: red, green and blue. A pixel is a node, and from each node start three arcs, going respectively towards the pixel at the bottom left, at the bottom, and at the bottom right of the node considered. For the edge nodes, there are two arcs going towards the pixel at the bottom and at the bottom left or at the bottom right respectively of the node considered.

Usage

1

Arguments

image

an image is considered as a graph

Examples

1

Faheemah-p/ShortPath documentation built on Feb. 3, 2022, 7:20 p.m.