~ubuntu-branches/ubuntu/raring/voxbo/raring

« back to all changes in this revision

Viewing changes to munge/vbim.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Michael Hanke
  • Date: 2011-02-25 13:23:31 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20110225132331-g2oxsilh28koblaz
Tags: 1.8.5~svn1246-1
New upstream code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
506
506
      }
507
507
    }
508
508
    rlist.push_back(r);
 
509
    VBRegion ro=r.maxregion();
 
510
    cout << ro.size() << " " << ro.begin()->second.val << endl;
509
511
  }
510
512
  else
511
513
    rlist=findregions(cb,vb_ne,0.0);
976
978
  return 0;
977
979
}
978
980
 
 
981
vbreturn op_abs(Cube &cube,tokenlist &)
 
982
{
 
983
  reallyload(cube);
 
984
  cube.abs();
 
985
  return 0;
 
986
}
 
987
 
 
988
vbreturn op_signflip(Cube &cube,tokenlist &)
 
989
{
 
990
  reallyload(cube);
 
991
  cube*=-1;
 
992
  return 0;
 
993
}
 
994
 
979
995
vbreturn op_flipx(Cube &cube,tokenlist &)
980
996
{
981
997
  reallyload(cube);
1962
1978
  oplist["threshabs"]=imageop("threshabs",1,1,op_threshabs);
1963
1979
  oplist["cutoff"]=imageop("cutoff",1,1,op_cutoff);
1964
1980
  oplist["invert"]=imageop("invert",0,0,op_invert);
 
1981
  oplist["abs"]=imageop("abs",0,0,op_abs);
 
1982
  oplist["signflip"]=imageop("signflip",0,0,op_signflip);
1965
1983
  oplist["splitregions"]=imageop("splitregions",1,1,op_splitregions);
1966
1984
 
1967
1985
  oplist["tr"]=imageop("tr",1,1,op_tr);