Changeset 2614 for trunk/src


Ignore:
Timestamp:
08/01/12 12:10:09 (12 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: Yes CAS-2825

Ready for Test: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: not available yet

Put in Release Notes: No

Module(s): Module Names change impacts.

Description: Describe your changes here...

Bug fix on 1D trimming stage.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/GenericEdgeDetector.cpp

    r2613 r2614  
    7777  name = "elongated" ;
    7878  if ( option.isDefined( name ) ) {
    79     elongated_ = !(option.asBool( name )) ;
     79    elongated_ = option.asBool( name ) ;
    8080  }
    8181  else {
     
    372372  uInt n = 0 ;
    373373  const uInt nx = a.nrow() ;
    374   //const uInt ny = a.ncolumn() ;
    375374  Vector<uInt> v1, v2 ;
    376375  uInt ix, jx ;
     
    379378    if ( anyNE( v1, n ) ) break ;
    380379  }
    381   for ( jx = nx-1 ; jx > ix ; jx++ ) {
     380  for ( jx = nx-1 ; jx > ix ; jx-- ) {
    382381    v2.reference( a.row( jx ) ) ;
    383382    if ( anyNE( v2, n ) ) break ;
     
    393392{
    394393  uInt n = 0 ;
    395   //const uInt nx = a.nrow() ;
    396394  const uInt ny = a.ncolumn() ;
    397395  Vector<uInt> v1, v2 ;
     
    401399    if ( anyNE( v1, n ) ) break ;
    402400  }
    403   for ( jy = ny-1 ; jy > iy ; jy++ ) {
     401  for ( jy = ny-1 ; jy > iy ; jy-- ) {
    404402    v2.reference( a.column( jy ) ) ;
    405403    if ( anyNE( v2, n ) ) break ;
Note: See TracChangeset for help on using the changeset viewer.