Example images can be found in the original densecrf/examples folder: im{1,2,3}.ppm and anno{1,2,3}.ppm.
Note that the function VectorXs getLabeling( const unsigned char * im, int N, int M ) from densecrf/examples/common.cpp does not need to be adapted to Python as skimage.segmentation.relabel_sequentialis perfectly suited to the task.
Added example file
dense_inference.py
following discussion on Issue https://github.com/lucasb-eyer/pydensecrf/issues/3 .Example images can be found in the original
densecrf/examples
folder:im{1,2,3}.ppm
andanno{1,2,3}.ppm
.Note that the function
VectorXs getLabeling( const unsigned char * im, int N, int M )
fromdensecrf/examples/common.cpp
does not need to be adapted to Python asskimage.segmentation.relabel_sequential
is perfectly suited to the task.