convolve3
Contents: Description, Arguments, Usage, Examples, Related Functions Supported Under Version: >1.69 Current Davinci Version: 2.27 64-bit Safe: Yes
Description Computes a sliding window kernel convolution.(AKA kernel filter, smooth). Same as convolve, only a somewhat faster algorithm is used.
Arguments and Return Values Arguments: A numeric array, a kernel (filtering array) and an ignore value Return Value: An array the size of the input object.
Usage Syntax: convolve(object=VAL, kernel=VAL, norm=BOOL) For each pixel in object, the weighted sum of the neighboring pixels is computed, with the weights being specified by the kernel. The norm parameter specifies whether or not each pixel is to be divided by the number of pixels used in the calculation. The neighborhood of edge pixels is smaller than center pixels. If norm=0, the edge pixels will be much smaller than the center pixels. The default is norm=1.
Examples dv> a 100x1x1 array of float, bsq format [400 bytes] 53.9788 57.6900 54.0981 58.6861 56.6364 57.1844 51.5344 59.0345 59.9379 58.6052 53.0549 54.7863 59.7489 58.6505 57.5061 55.9742 53.9737 56.7772 57.6349 57.0474 58.0184 51.3361 58.7491 59.8550 56.4486 56.0352 58.8567 58.4009 56.8651 56.4712 56.4956 54.6221 58.8233 59.4161 54.7317 58.1370 57.3661 57.5358 53.5277 57.8457 56.1029 52.6918 55.7651 58.3988 57.1452 54.4621 54.0289 58.8286 59.5696 53.9693 58.9322 57.8385 57.1589 58.8464 57.6993 57.0087 54.1821 59.5195 52.4622 56.6321 54.2951 59.4223 54.7540 58.6589 58.5560 58.5596 55.3170 52.1710 53.4586 55.5369 54.8232 56.2279 55.5786 56.6252 55.3943 52.5972 56.1316 57.2916 58.3935 55.1356 58.5271 59.9844 55.6486 59.4911 55.3317 52.1642 58.8132 59.1644 54.9611 54.2263 59.2408 56.2664 59.2647 51.6016 59.2431 55.7747 58.8142 59.9822 57.2909 59.0275 dv> kernel 15x1x1 array of float, bsq format [60 bytes] 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 dv> b = convolve(a,kernel,ignore=0) 100x1x1 array of float, bsq format [400 bytes] 56.1054 56.5312 56.7386 56.4037 56.2689 56.5366 56.6876 56.7422 56.8752 56.6275 56.8061 56.7360 56.7634 56.8190 56.8057 56.7867 56.7812 56.6374 56.8361 57.1075 57.0176 56.8986 56.8296 56.8643 56.9076 57.0440 57.1627 57.0083 57.0162 57.4183 57.3374 56.9155 57.0087 57.0132 56.6022 56.4265 56.5287 56.5737 56.4381 56.3985 56.3989 56.4091 56.3583 56.4113 56.4428 56.4177 56.7723 56.7625 56.8229 56.9222 57.1725 56.7768 56.7426 56.7314 57.0910 56.8194 56.7586 57.0644 57.0396 56.8715 56.5390 56.1798 56.0356 55.8899 56.0263 55.7636 56.0411 55.9586 55.8454 55.6260 55.7952 55.7775 55.5494 55.5473 55.8584 56.0903 56.4925 56.4788 56.3015 56.4739 56.7129 56.6020 56.5241 56.9670 56.9760 57.1075 56.6547 56.9286 56.7451 56.6671 56.9560 56.8093 57.0557 57.4051 57.2968 57.1411 57.3393 57.6506 57.4739 57.6249 |
DavinciWiki Mini-Nav Bar Contents
Contact Developers
All other topics
Related Functions
Recent Core Changes Modified On: 07-06-2009 |