if(root.size()==0)returnFailure;//there are apparently not any roots on this image
if(root.size()==0){
returnFailure;//there are apparently not any roots on this image
}
//at the time of this writing ISIS made no attempt to support any sensors that were not "1 to 1" meaning that imaged the same point on the ground in multiple lines of the image
// therefore we must somehow reduce multiple possible roots to a single one, the legacy code (replaced with this code) did this based on distance from the sensor to the target
// At the time of this writing ISIS made no attempt to support any sensors that were not "1 to 1".
// Meaning that imaged the same point on the ground in multiple lines of the image
// therefore we must somehow reduce multiple possible roots to a single one, the legacy
// code (replaced with this code) did this based on distance from the sensor to the target
// the shortest distance being the winner. For legacy consistency I have used the same logic below.