draw.imwdc            package:wavethresh            R Documentation

_D_r_a_w _m_o_t_h_e_r _w_a_v_e_l_e_t _a_s_s_o_c_i_a_t_e_d _w_i_t_h _a_n _i_m_w_d_c _o_b_j_e_c_t.

_D_e_s_c_r_i_p_t_i_o_n:

     This function draws the mother wavelet associated with an
     'imwdc.object' - a compressed two-dimensional wavelet
     decomposition.

_U_s_a_g_e:

     draw.imwdc(wd, resolution=128, ...)

_A_r_g_u_m_e_n_t_s:

      wd: The 'imwd' class object whose associated wavelet you wish to
          draw. (I know its called wd, sorry).

resolution: The resolution at which the computation is done to compute
          the wavelet picture. Generally the resolution should be lower
          for two-dimensional wavelets since the number of computations
          is proportional to the square of the resolution (the DWT is
          still O(n) though).

     ...: Additional arguments to pass to the 'draw.default' function
          which does the drawing.

_D_e_t_a_i_l_s:

     This function extracts the 'filter' component from the 'imwd'
     object (which is constructed using the 'filter.select' function)
     to decide which wavelet to draw. Once decided the 'draw.default'
     function is used to actually do the drawing.

_V_a_l_u_e:

     If the 'plot.it' argument is set to 'TRUE' then nothing is
     returned. Otherwise, as with 'draw.default', the coordinates of
     what would have been plotted are returned.

_R_E_L_E_A_S_E:

     Version 2 Copyright Guy Nason 1993

_S_e_e _A_l_s_o:

     'filter.select', 'imwdc.object', 'draw.default'.

_E_x_a_m_p_l_e_s:

     #
     # Let's use the lennon test image
     #
     #data(lennon)
     #image(lennon)
     #
     # Now let's do the 2D discrete wavelet transform using Daubechies'
     # least-asymmetric wavelet N=6
     #
     #lwd <- imwd(lennon, filter.number=6)
     #
     # Now let's threshold the 2D DWT
     # The resultant class of object is imwdc object.
     #
     #lwdT <- threshold(lwd)
     #
     # And now draw the wavelet that did this transform
     #
     #draw(lwdT)
     #
     # A nice little two-dimensional wavelet!
     #

