The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 matrix operations
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

tinkusch

Germany
94 Posts

Posted - 03/11/2002 :  07:57:51 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

easwar

USA
1965 Posts

Posted - 03/11/2002 :  10:29:18 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

tinkusch

Germany
94 Posts

Posted - 03/12/2002 :  11:57:33 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks Easwar, now it is clear.
Bye

Stefan
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000