| T O P I C R E V I E W |
| tinkusch |
Posted - 03/11/2002 : 07:57:51 AM Hi, I just need some help to understand what the following method:
mymatrix.ApplyFilter(filter, option2)
is exactly (mathematically) doing on matrix "mymatrix". From the immage processing example I derived that "filter" should be a square matrix. I haven't found any explanation in the origin help-files. thanks for any information
Stefan |
| 2 L A T E S T R E P L I E S (Newest First) |
| tinkusch |
Posted - 03/12/2002 : 11:57:33 AM Thanks Easwar, now it is clear. Bye
Stefan |
| easwar |
Posted - 03/11/2002 : 10:29:18 AM Hi Stefan,
The math operation that is performed is spatial filtering: The filter matrix is used as a mask by centering the filter matrix on each pixel/cell of your matrix and the sum of the product of the cells in your matrix with those of the filter matrix are computed. The sum is then normalized to the weight (sum of elements) of the filter matrix (default, can be turned off).
The filter matrix should be a square matrix of size 3x3, 5x5, or 7x7. It should be of type double.
You can also decide as to how the border pixels of your matrix are treated: you can pad with zeroes, or pad with neighboring pixels in your matrix. The default is to pad with zeroes.
You can view the command syntax from the help file on Orign C or by directly vieiwing the data.h header file under the \OriginC\system subfolder.
There is no sample code for this command yet, except what you see in the Image Processing.c sample project area. We are working on adding more documentation.
Note that you can now check for new documentation and service releases using the Orign menu item: "Help | Check for Updates".
Easwar OriginLab.
Edited by - easwar on 03/11/2002 10:36:33 |
|
|