org.openimaj.image.processing.convolution

## Class BasicDerivativeKernels

• java.lang.Object
• org.openimaj.image.processing.convolution.BasicDerivativeKernels

• ```public class BasicDerivativeKernels
extends Object```
A set of standard derivative kernels. These kernels help estimate the derivative over various orders at a point in a matrix. This is approximated by applying a finite difference derivative operation on a gaussian kernel with a very low sigma. i.e. a gaussian kernel that looks like: [ [0,0,0], [0,1,0], [0,0,0] ] By successive derivative calculations in the x direction and y direction it is possible to estimate derivatives in both directions as well.
Author:
Jonathon Hare (jsh2@ecs.soton.ac.uk)
• ### Field Summary

Fields
Modifier and Type Field and Description
`static FConvolution` `DX_KERNEL`
kernel approximating the first derivative of a low-sigma gaussian in the x-direction [-0.5, 0, 0.5].
`static FConvolution` `DXX_KERNEL`
kernel approximating the second derivative of a low sigma gaussian in the x-direction [1, -2, 1].
`static FConvolution` `DXXXX_KERNEL`
kernel approximating the fourth derivative of a low sigma gaussian in the x-direction [1,-4,6,-4,1]^T Useful for giving an estimate of the fourth derivative in y of any given point
`static FConvolution` `DXXYY_KERNEL`
kernel approximating the second derivative of a low sigma gaussian in the x-direction and y-direction [[1,-2,1],[-2,4,-2],[1,-2,1]] .
`static FConvolution` `DXY_KERNEL`
kernel approximating the first derivative of a low sigma gaussian in the x-direction and y-direction [[-0.25, 0, 0.25], [0, 0, 0], [0.25, 0, -0.25]] .
`static FConvolution` `DY_KERNEL`
kernel approximating the first derivative of a low-sigma gaussian in the y-direction [-0.5, 0, 0.5]'.
`static FConvolution` `DYY_KERNEL`
kernel approximating the second derivative of a low sigma gaussian in the y-direction [1, -2, 1]'.
`static FConvolution` `DYYYY_KERNEL`
kernel approximating the fourth derivative of a low sigma gaussian in the y-direction [1,-4,6,-4,1]^T Useful for giving an estimate of the fourth derivative in y of any given point
• ### Constructor Summary

Constructors
Constructor and Description
`BasicDerivativeKernels()`

• ### Methods inherited from class java.lang.Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`
• ### Field Detail

• #### DX_KERNEL

`public static final FConvolution DX_KERNEL`
kernel approximating the first derivative of a low-sigma gaussian in the x-direction [-0.5, 0, 0.5]. Useful for giving an estimate of the second derivative in x of any given point
• #### DY_KERNEL

`public static final FConvolution DY_KERNEL`
kernel approximating the first derivative of a low-sigma gaussian in the y-direction [-0.5, 0, 0.5]'. Useful for giving an estimate of the second derivative in y of any given point
• #### DXX_KERNEL

`public static final FConvolution DXX_KERNEL`
kernel approximating the second derivative of a low sigma gaussian in the x-direction [1, -2, 1]. Useful for giving an estimate of the second derivative in x of any given point
• #### DXY_KERNEL

`public static final FConvolution DXY_KERNEL`
kernel approximating the first derivative of a low sigma gaussian in the x-direction and y-direction [[-0.25, 0, 0.25], [0, 0, 0], [0.25, 0, -0.25]] . Useful for giving an estimate of the first order derivative in x then y of any given point
• #### DYY_KERNEL

`public static final FConvolution DYY_KERNEL`
kernel approximating the second derivative of a low sigma gaussian in the y-direction [1, -2, 1]'. Useful for giving an estimate of the second derivative in y of any given point
• #### DXXXX_KERNEL

`public static final FConvolution DXXXX_KERNEL`
kernel approximating the fourth derivative of a low sigma gaussian in the x-direction [1,-4,6,-4,1]^T Useful for giving an estimate of the fourth derivative in y of any given point
• #### DXXYY_KERNEL

`public static final FConvolution DXXYY_KERNEL`
kernel approximating the second derivative of a low sigma gaussian in the x-direction and y-direction [[1,-2,1],[-2,4,-2],[1,-2,1]] . Useful for giving an estimate of the second order derivative in x then y of any given point
• #### DYYYY_KERNEL

`public static final FConvolution DYYYY_KERNEL`
kernel approximating the fourth derivative of a low sigma gaussian in the y-direction [1,-4,6,-4,1]^T Useful for giving an estimate of the fourth derivative in y of any given point
• ### Constructor Detail

• #### BasicDerivativeKernels

`public BasicDerivativeKernels()`
{"ft_lang_label":"__label__en","ft_lang_prob":0.6616661,"math_prob":0.9499764,"size":1867,"snap":"2021-43-2021-49","text_gpt3_token_len":493,"char_repetition_ratio":0.18464841,"word_repetition_ratio":0.38671875,"special_character_ratio":0.24370648,"punctuation_ratio":0.14067279,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.997851,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-12-07T21:09:14Z\",\"WARC-Record-ID\":\"<urn:uuid:b3553535-a810-4aec-b3e0-5817ce11a882>\",\"Content-Length\":\"23423\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:a2e03301-842d-43b4-b934-2389dc4c6a42>\",\"WARC-Concurrent-To\":\"<urn:uuid:ad4c7788-dd7c-4ad0-a694-fcc0486905f1>\",\"WARC-IP-Address\":\"185.199.108.153\",\"WARC-Target-URI\":\"https://openimaj.org/apidocs/org/openimaj/image/processing/convolution/BasicDerivativeKernels.html\",\"WARC-Payload-Digest\":\"sha1:GL65QNR3KGLNLI65CUGMHDKWX6AFFSWZ\",\"WARC-Block-Digest\":\"sha1:VUTHOAQCVYXRHG7N4PZSMQM4KBYBRRVB\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-49/CC-MAIN-2021-49_segments_1637964363418.83_warc_CC-MAIN-20211207201422-20211207231422-00250.warc.gz\"}"}