Example #1
0
Can_Exp_OPB_Comp::Can_Exp_OPB_Comp
(
                    const Arg_Fonc_Num_Comp & arg,
                    INT                     dim_out,
                    Fonc_Num                f0,
                    REAL                    fx,
                    REAL                    fy,
                    INT                     nb,
                    bool                    rec_ar,
                    bool                    double_sens
) :
       Fonc_Num_OPB_TPL<REAL>
       (
             arg,
             dim_out,
             Arg_FNOPB(f0,Box2di(Pt2di(0,0),Pt2di(0,nb)))
        ),
       _fx (fx),
       _fy (fy),
       _nb (nb),
       _rec_arr (rec_ar),
       _double_sens (double_sens),
       _cptl    (0)
{

     _buf_exp_x      = NEW_VECTEUR(_x0,_x1,REAL);
     _cumul_line_av  = NEW_MATRICE(Pt2di(_x0,0),Pt2di(_x1,_dim_out),REAL);
     if (_rec_arr)
     {
        _buf_rec_arr    = NEW_TAB_MATRICE(_dim_out,Pt2di(_x0,1),Pt2di(_x1,_nb+1),REAL);
        _correc_arr     = NEW_MATRICE(Pt2di(_x0,0),Pt2di(_x1,_dim_out),REAL);
     }
}
Example #2
0
Simple_OPBuf1<INT,U_INT1> * Skel_OPB_Comp::dup_comp()
{
     Skel_OPB_Comp * soc = new Skel_OPB_Comp(_larg,_AvecDist);
     soc->_sz = Pt2di(x1Buf()-x0Buf(),y1Buf()-y0Buf());
     soc->_im_init =  NEW_MATRICE
                      (
                           Pt2di(0,0),
                           soc->_sz,
                           TY_SKEL
                      );

     soc->_skel = NEW_TAB_MATRICE
                  (
                      dim_in(),
                      Pt2di(0,0),
                      soc->_sz,
                      TY_SKEL
                  );
     soc->_tmp = Im2D_U_INT2(soc->_sz.x,soc->_sz.y);
     soc->_larg = soc->_larg+ArgSkeleton(TmpSkel(soc->_tmp));

     return soc;
}