@@ -353,7 +353,7 @@ void MR2D1D::put_band(fltarray Band, int s2, int s1)
353353
354354/* ***************************************************************************/
355355
356- void MR2D1D::alloc (int iNx, int iNy, int iNz, type_transform Trans2D, int Ns2D, int Ns1D, Bool NoAlloc)
356+ void MR2D1D::alloc (int iNx, int iNy, int iNz, type_transform Trans2D, int Ns2D, int Ns1D, Bool NoAlloc, type_sb_filter Filter1D )
357357{
358358 Nx = iNx;
359359 Ny = iNy;
@@ -366,7 +366,7 @@ void MR2D1D::alloc (int iNx, int iNy, int iNz, type_transform Trans2D, int Ns2D,
366366 Apply1DTrans = False;
367367 }
368368 else Apply1DTrans = True;
369- ;
369+
370370 Norm = NORM_L2;
371371 SB_Filter = F_MALLAT_7_9;
372372 Bord = I_CONT;
@@ -386,13 +386,16 @@ void MR2D1D::alloc (int iNx, int iNy, int iNz, type_transform Trans2D, int Ns2D,
386386 WT2D.alloc (Ny, Nx, Ns2D, Trans2D, PtrFAS, Norm, NbrUndec, U_Filter);
387387 NbrBand2D = WT2D.nbr_band ();
388388
389-
390389 Bool Rebin=False;
391390 WT1D.U_Filter = U_Filter;
391+ FilterAnaSynt *PtrFAS1D = NULL ;
392+ FAS1D.Verbose = Verbose;
393+ FAS1D.alloc (Filter1D);
394+ PtrFAS1D = &FAS1D;
392395 type_trans_1d Trans1D = TO1_MALLAT;
393396 if (Apply1DTrans == True)
394397 {
395- WT1D.alloc (Nz, Trans1D, Ns1D, PtrFAS , Norm, Rebin);
398+ WT1D.alloc (Nz, Trans1D, Ns1D, PtrFAS1D , Norm, Rebin);
396399 NbrBand1D = WT1D.nbr_band ();
397400 }
398401 else NbrBand1D = 1 ;
@@ -518,8 +521,6 @@ void MR2D1D::transform (fltarray &Data)
518521
519522/* ***************************************************************************/
520523
521-
522-
523524void MR2D1D::recons (fltarray &Data)
524525{
525526 if ((Data.nx () != Nx) || (Data.ny () != Ny) || (Data.nz () != Nz)) Data.resize (Nx, Ny, Nz);
@@ -563,4 +564,21 @@ void MR2D1D::recons (fltarray &Data)
563564
564565 /* ***************************************************************************/
565566
566-
567+ void MR2D1D::info ()
568+ {
569+ cout << " Transform = " << StringTransform ((type_transform) WT2D.Type_Transform ) << endl;
570+ cout << " nb_scale_2d = " << NbrBand2D << endl;
571+ cout << " NbrScale1d = " << NbrBand1D << endl;
572+ cout << " Nx = " << Nx << " Ny = " << Ny << " Nz = " << Nz << endl;
573+ cout << endl;
574+ for (int s2 = 0 ; s2 < NbrBand2D; s2++)
575+ for (int s1 = 0 ; s1 < NbrBand1D; s1++)
576+ {
577+ cout << " Band " << s2 << " , " << s1 << " : " << " Nx = " << size_band_nx (s2,s1) << " , Ny = " << size_band_ny (s2,s1) << " , Nz = " << size_band_nz (s2,s1) << endl;
578+ fltarray Band;
579+ Band = get_band (s2, s1);
580+ cout << " Sigma = " << Band.sigma () << " Min = " << Band.min () << " Max = " << Band.max () << endl;
581+ }
582+ }
583+
584+ /* ***************************************************************************/
0 commit comments