Changeset 2675 for trunk/src/STGrid.cpp


Ignore:
Timestamp:
10/19/12 19:06:59 (12 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: Yes CAS-4429

Ready for Test: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: Yes/No?

Module(s): Module Names change impacts.

Description: Describe your changes here...

convSupport for gauss and gjinc is set to ceil of truncation
radius, which was round before.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STGrid.cpp

    r2674 r2675  
    18121812      }
    18131813    }     
    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);
    18151817    Int convSize = convSampling_ * ( 2*convSupport_ + 2 ) ;
    18161818    convFunc.resize( convSize ) ;
     
    18601862      }
    18611863    }     
    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);
    18631868    Int convSize = convSampling_ * ( 2*convSupport_ + 2 ) ;
    18641869    convFunc.resize( convSize ) ;
Note: See TracChangeset for help on using the changeset viewer.