imageprocessing/guidedVectorize.c
void pixels2meters(int col, int row, double* pXm, double* pYm)
{
  *pXm = (double) centerX + ((col - width/2) * cellsizeX);
  *pYm = (double) centerY - ((row - height/2) * cellsizeY) ;
}
/* convert a point in pixels to x,y in meters
 * @param     col               column number (x)
 * @param     row               row number (y)
 * @param     pXm               pointer to X coord in meters
 * @param     pYm               pointer to Y coord in meters
 * Returns results in passed pointers
 * Uses global origin and cell size data
 */
convert a point in pixels to x,y in meters
@param     col               column number (x)
@param     row               row number (y)
@param     pXm               pointer to X coord in meters
@param     pYm               pointer to Y coord in meters
Returns results in passed pointers
Uses global origin and cell size data
convert a point in pixels to x y in meters @param col column number ( x ) @param row row number ( y ) @param pXm pointer to X coord in meters @param pYm pointer to Y coord in meters Returns results in passed pointers Uses global origin and cell size data
void pixels2meters(int col, int row, double* pXm, double* pYm)
{
  *pXm = (double) centerX + ((col - width/2) * cellsizeX);
  *pYm = (double) centerY - ((row - height/2) * cellsizeY) ;
}
void pixels2meters ( int col , int row , double * pXm , double * pYm ) { * pXm = ( double ) centerX + ( ( col - width / 2 ) * cellsizeX ) ; * pYm = ( double ) centerY - ( ( row - height / 2 ) * cellsizeY ) ; }
convert a point in pixels to x,y in meters
 @param     col               column number (x)
 @param     row               row number (y)
 @param     pXm               pointer to X coord in meters
 @param     pYm               pointer to Y coord in meters
 Returns results in passed pointers
 Uses global origin and cell size data
convert a point in pixels to x y in meters @param col column number ( x ) @param row row number ( y ) @param pXm pointer to X coord in meters @param pYm pointer to Y coord in meters Returns results in passed pointers Uses global origin and cell size data