Example #1
0
 public void FillInputFrequency(SetValueFrequencyDelegate _SetValue)
 {
     m_InputIsSpatial = false;
     for (int Y = 0; Y < m_Height; Y++)
     {
         for (int X = 0; X < m_Width; X++)
         {
             _SetValue(X, Y, out m_UserInput[2 * (m_Width * Y + X) + 0], out m_UserInput[2 * (m_Width * Y + X) + 1]);
         }
     }
 }
Example #2
0
 public void FillInputFrequency(SetValueFrequencyDelegate _SetValue)
 {
     m_InputIsSpatial = false;
     for (int Y = 0; Y < m_Height; Y++)
     {
         int Fy = Y < 128 ? Y : Y - 255;                                 // Negative frequencies are stored in the second half of the array
         for (int X = 0; X < m_Width; X++)
         {
             int Fx = X < 128 ? X : X - 255;                             // Negative frequencies are stored in the second half of the array
             _SetValue(Fx, Fy, out m_UserInput[2 * (m_Width * Y + X) + 0], out m_UserInput[2 * (m_Width * Y + X) + 1]);
         }
     }
 }
Example #3
0
        public void FillInputFrequency_UseNegativeFrequencies(SetValueFrequencyDelegate _SetValue)
        {
            m_InputIsSpatial = false;
            int halfWidth  = m_Width / 2;
            int halfHeight = m_Height / 2;

            for (int Y = 0; Y < m_Height; Y++)
            {
                int Fy = Y < halfHeight ? Y : Y - m_Height + 1;                         // Negative frequencies are stored in the second half of the array
                for (int X = 0; X < m_Width; X++)
                {
                    int Fx = X < halfWidth ? X : X - m_Width + 1;                       // Negative frequencies are stored in the second half of the array
                    _SetValue(Fx, Fy, out m_UserInput[2 * (m_Width * Y + X) + 0], out m_UserInput[2 * (m_Width * Y + X) + 1]);
                }
            }
        }
Example #4
0
 public void FillInputFrequency( SetValueFrequencyDelegate _SetValue )
 {
     m_InputIsSpatial = false;
     for ( int Y=0; Y < m_Height; Y++ )
     {
         int	Fy = Y < 128 ? Y : Y-255;		// Negative frequencies are stored in the second half of the array
         for ( int X=0; X < m_Width; X++ )
         {
             int	Fx = X < 128 ? X : X-255;	// Negative frequencies are stored in the second half of the array
             _SetValue( Fx, Fy, out m_UserInput[2*(m_Width*Y+X)+0], out m_UserInput[2*(m_Width*Y+X)+1] );
         }
     }
 }