Matrix Filters!!!!!!

Home Page forums Autodesk/Discreet Flame and Smoke Matrix Filters!!!!!!

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #198884
    Devico
    Participant

    Hello!!!
    somebody knows how really works matrix filters?… in a 3*3 matrix what do the numerics values in reference of the center pixel.
    People explainme examples of matrix filters…what how really works!!!???. Sorry for my English!!!

    #206603
    Anonymous
    Inactive

    The matrix represents one pixel (in the center of the matrix) and its neighbours. The size of the matrix defines how many of the neighbours are included in the calculation.
    What the matrix filter does is simply to multiply each pixel with its corresponding matrix value. Then it adds together all the sums and uses that as the new value for the “center” pixel.

    To create a very slight blur of an image for example you could use the following matrix:

    1/9 1/9 1/9
    1/9 1/9 1/9
    1/9 1/9 1/9

    This would produce an image where every pixel equals the average of itself and the 8 pixels surrounding it. To blur more use a larger matrix and instead of 1/9 use 1/n, where n is the total number of matrix fields, eg. if you use a 9×9 matrix you should fill it with 1/81.

    Another use of matrix filtering is edge detection. By using a matrix such as:

    -1 -1 -1
    -1 8 -1
    -1 -1 -1

    you would get an image highligting edges. To detect vertical lines you would use the matrix:

    -1 2 -1
    -1 2 -1
    -1 2 -1

    and for horizontal

    -1 -1 -1
    2 2 2
    -1 -1 -1

    Generally matrices can be used for simple image processing such as these.

    [ Edited by Stephan On Date _MONTHDATETIME ]

    [ Edited by Stephan On Date _MONTHDATETIME ]

    #206602
    Devico
    Participant

    Thanks Stephan!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Copy link
Powered by Social Snap