Previously it was doing it from the top left. This change makes the BlockSum operation more consistent with Convolution.
There is no need for a recursive call as it's just a constant edge extension on the bottom right side.
Also made BlockSum more verbose.
It fails currently, but that's because block sum view is not implemented correctly.
Just needed to add the correct assignment operators. I also added some tests to verify that they work. Also removed non-const assignment operators for CropView, SelectRow, and SelectCol. They're not required for shallow views (thanks Matt!).
It returns true if everything went well, and false in the event of failure. This also fixes a bug for image2qtree. Image2qtree previously wasn't noticing that some images didn't have georef information. This fix also helps make opertions between pds_georef and gdal_georef more similiar. Previously in the event of a read failure in PDS it would throw an error. GDAL georef code wouldn't say anything however. Consider it fixed.
Even with integral types, in-class static init doesn't work right. It only works if every use of the constant is inlined. If you ever use that constant from a place where you need an address (ie, reference or pointer) it will fail to link with an undefined reference. Values may become references in surprising places if optimization is turned on. Take-away: don't ever use static in-class initialization. At all. (lame).
Added test to make sure that code works. I did a horrible job making this code generic. It needs a rewrite.
read_file() is an old read access function for PinholeModel.
GCP CNET are for when there are a large number of ground control points to be loaded. Maybe in the future it would be better to use these exclusively.
It's required to work with temporary types.
It shows that transform from stereographic to plate caree will produce a BBox that goes up to the pole.
The fix is not to just only test the pole but to instead draw an X and see where the individual points hit. So in the event of a singularity at the pole, the pixels near will still project and allow growth of the bbox.
The problem was that the input file had georeference information but it was malformed and caused a crash. Now the user can provide outside georef information even in the event of malformed input from file.
I don't care if it's self serving, log and patch really are horribly performing.