Changeset 2675 for trunk/src/STGrid.cpp
- Timestamp:
- 10/19/12 19:06:59 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STGrid.cpp
r2674 r2675 1812 1812 } 1813 1813 } 1814 convSupport_ = (Int)(truncate+0.5); 1814 //convSupport_ = (Int)(truncate+0.5); 1815 convSupport_ = (Int)(truncate); 1816 convSupport_ += (((truncate-(Double)convSupport_) > 0.0) ? 1 : 0); 1815 1817 Int convSize = convSampling_ * ( 2*convSupport_ + 2 ) ; 1816 1818 convFunc.resize( convSize ) ; … … 1860 1862 } 1861 1863 } 1862 convSupport_ = (truncate >= 0.0) ? (Int)(truncate+0.5) : (Int)(2*pixelJW+0.5); 1864 //convSupport_ = (truncate >= 0.0) ? (Int)(truncate+0.5) : (Int)(2*pixelJW+0.5); 1865 Double convSupportF = (truncate >= 0.0) ? truncate : (2*pixelJW); 1866 convSupport_ = (Int)convSupportF; 1867 convSupport_ += (((convSupportF-(Double)convSupport_) > 0.0) ? 1 : 0); 1863 1868 Int convSize = convSampling_ * ( 2*convSupport_ + 2 ) ; 1864 1869 convFunc.resize( convSize ) ;
Note:
See TracChangeset
for help on using the changeset viewer.