Skip to content
Snippets Groups Projects
Commit 71813a03 authored by Patrick Imbo's avatar Patrick Imbo
Browse files

ENH: add Evaluate function

parent 99cf9e58
Branches
Tags
No related merge requests found
...@@ -83,12 +83,13 @@ DEMToOrthoImageGenerator<TDEMImage, TMapProjection> ...@@ -83,12 +83,13 @@ DEMToOrthoImageGenerator<TDEMImage, TMapProjection>
// otbMsgDevMacro(<< "GeoPoint: (" << geoPoint[0] << "," << geoPoint[1] << ")"); // otbMsgDevMacro(<< "GeoPoint: (" << geoPoint[0] << "," << geoPoint[1] << ")");
height = this->m_DEMFunction->Evaluate(geoPoint); // Altitude calculation // height = this->m_DEMFunction->Evaluate(geoPoint); // Altitude calculation
otbMsgDevMacro(<< "Index : (" << currentindex[0]<< "," << currentindex[1] << ") -> PhyPoint : (" // otbMsgDevMacro(<< "Index : (" << currentindex[0]<< "," << currentindex[1] << ") -> PhyPoint : ("
<< cartoPoint[0] << "," << cartoPoint[1] << ") -> GeoPoint: (" // << cartoPoint[0] << "," << cartoPoint[1] << ") -> GeoPoint: ("
<< geoPoint[0] << "," << geoPoint[1] << ") -> height" << height); // << geoPoint[0] << "," << geoPoint[1] << ") -> height " << height);
// otbMsgDevMacro(<< "height: " << height); // otbMsgDevMacro(<< "height: " << height);
DEMImage->SetPixel(currentindex, this->m_DEMFunction->Evaluate(geoPoint) );
progress.CompletedPixel(); progress.CompletedPixel();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment