reb
Class REB_HighPassFilter

Object
  extended by common:Generic
      extended by dmj5:DMJ_ConvolutionFilter
          extended by reb:REB_HighPassFilter

class 
DMJ_ConvolutionFilter:REB_HighPassFilter

Quick Filter that attenuates low frequency content


Ultra Fractal Source

Toggle UF Source Code Display

 class REB_HighPassFilter(dmj5.ulb:DMJ_ConvolutionFilter) {
   ; Quick Filter that attenuates low frequency content
     
 public:
   import "common.ulb"
   import "dmj5.ulb"
   
   ; contructor
   func REB_HighPassFilter(Generic pparent)
     DMJ_ConvolutionFilter.DMJ_ConvolutionFilter(pparent)
     
     int count = 3
     int elements = sqr(count)
     setLength(m_Offsets, elements)
     setLength(m_Weights, elements)
     m_Multiplier = 0.0
 
     int j = -1
     int k = 0
     int l = 0
     while j <= 1
       k = -1
       while (k <= 1)
         m_Offsets[l] = (@p_radius*j + flip(@p_radius*k))/100
         if @option == "Filter 3"
           m_Weights[l] = -1
           if j == 0 && k == 0
             m_weights[l] = 9
           endif
         elseif @option == "Filter 2"
           m_Weights[l] = 0
           if j == 0 && k == 0
             m_Weights[l] = 5
           elseif j == 0 || k == 0
             m_weights[l] = -1
           endif
         elseif @option == "Filter 1"
           m_Weights[l] = 1
           if j == 0 && k == 0
             m_Weights[l] = 5
           elseif j == 0 || k == 0
             m_weights[l] = -2
           endif
         endif
         l = l + 1
         k = k + 1
       endwhile
       j = j + 1
     endwhile
     m_Multiplier = 1
   endfunc
   
 default:
   title = "Quick High Pass Filter"
   heading
     text = "Quick filter that attenuates low frequency color information."
   endheading
   int param v_highpass
     caption = "Version (Low Pass Filter)"
     default = 100
     hint = "This version parameter is used to detect when a change has been made to the formula that is incompatible with the previous version. When that happens, this field will reflect the old version number to alert you to the fact that an alternate rendering is being used."
     visible = @v_highpass < 100
   endparam
   float param p_radius
     caption = "Filter Radius"
     default = 0.1
   endparam
   param option
     caption = "Options"
     default = 0
     enum = "Filter 1" "Filter 2" "Filter 3"
   endparam
 }
 


Constructor Summary
REB_HighPassFilter()
           
REB_HighPassFilter(Generic pparent)
          contructor
 
Method Summary
 
Methods inherited from class dmj5:DMJ_ConvolutionFilter
Init
 
Methods inherited from class common:Generic
GetParent
 
Methods inherited from class Object
 

Constructor Detail

REB_HighPassFilter

public REB_HighPassFilter(Generic pparent)
contructor


REB_HighPassFilter

public REB_HighPassFilter()