diff --git a/samples/cpp/tutorial_code/HighGUI/GDAL_IO/gdal-image.cpp b/samples/cpp/tutorial_code/HighGUI/GDAL_IO/gdal-image.cpp index 48031fe37..deb377028 100644 --- a/samples/cpp/tutorial_code/HighGUI/GDAL_IO/gdal-image.cpp +++ b/samples/cpp/tutorial_code/HighGUI/GDAL_IO/gdal-image.cpp @@ -15,7 +15,6 @@ using namespace std; - /// define the corner points /// Note that GDAL can natively determine this cv::Point2d tl( -122.441017, 37.815664 ); @@ -30,6 +29,20 @@ cv::Point2d dem_tr( -123.0, 37); /// range of the heat map colors std::vector > color_range; + +/// List of all function prototypes +cv::Point2d lerp( const cv::Point2d&, const cv::Point2d&, const double& ); + +cv::Vec3b get_dem_color( const double& ); + +cv::Point2d world2dem( const cv::Point2d&, const cv::Size&); + +cv::Point2d pixel2world( const int&, const int&, const cv::Size& ); + +void add_color( cv::Vec3b& pix, const uchar& b, const uchar& g, const uchar& r ); + + + /** * Linear Interpolation * p1 - Point 1 @@ -73,7 +86,7 @@ cv::Vec3b get_dem_color( const double& elevation ){ // otherwise, find the proper starting index int idx=0; double t = 0; - for( int x=0; x