Home Page › forums › Autodesk/Discreet › Flame and Smoke › Matrix Filters!!!!!!
- This topic has 2 replies, 2 voices, and was last updated 18 years, 3 months ago by Anonymous.
-
AuthorPosts
-
July 8, 2002 at 10:33 pm #198884DevicoParticipant
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!!!July 14, 2002 at 12:24 pm #206603AnonymousInactiveThe 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/9This 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 -1you would get an image highligting edges. To detect vertical lines you would use the matrix:
-1 2 -1
-1 2 -1
-1 2 -1and for horizontal
-1 -1 -1
2 2 2
-1 -1 -1Generally matrices can be used for simple image processing such as these.
[ Edited by Stephan On Date _MONTHDATETIME ]
[ Edited by Stephan On Date _MONTHDATETIME ]
July 31, 2002 at 4:28 pm #206602DevicoParticipantThanks Stephan!
-
AuthorPosts
- You must be logged in to reply to this topic.
