How do I check if png++
and libpng
is installed in Ubuntu? I am trying to compile this code and the readme says libpng
and png++
are required:
SPS-Stereo: Slanted Plane Smoothing Stereo
SPS-Stereo is a dense stereo method employing a slanted plane model. It jointly estimates a superpixel segmentation, boundry labels (such as occlusion boundaries), and a dense depth estimate from a pair of stereo images.
Citation
@inproceedings{Yamaguchi14, author = {Koichiro Yamaguchi and David McAllester and Raquel Urtasun}, title = {Efficient Joint Segmentation, Occlusion Labeling, Stereo and Flow Estimation}, booktitle = {ECCV}, year = {2014} }
Building SPS-Stereo
Usage of demo code
First, download KITTI stereo/flow dataset from KITTI Vision Benchmark Suite homepage and extract it.
Run SPS-Stereo
> ./spsstereo data_stereo_flow/training/image_0/000000_10.png data_stereo_flow/training/image_1/000000_10.png
I have followed the instructions to install both, but I am getting an error:
/home/usr/spsstereo/spsstereo_main.cpp:22:25: fatal error: png++/png.hpp: No such file or directory
#include <png++/png.hpp>
^
compilation terminated.
make[2]: *** [CMakeFiles/spsstereo.dir/spsstereo_main.o] Error 1
make[1]: *** [CMakeFiles/spsstereo.dir/all] Error 2
I'm guessing png++
is not installed. How do I check?
libpng++-dev