Skip to content

Can gSig be an even Number ? #1237

Answered by EricThomson
bashsyr asked this question in Q&A
Nov 21, 2023 · 2 comments · 6 replies
Discussion options

You must be logged in to vote

gSig and gsig_filt can be even, gSiz is odd. But even if you don't make it odd, the code will force it to be odd on the back end.

All the sig params are gaussian filter sigma (standard deviation) parameters. gSiz is a bit all over the place in the code, but in the context of initialization it is the size in pixels of the gaussian kernel that you convolve the images with -- you basically want to be sure that the kernel is large enough to contain all the energy in the convolution kernel.

We use opencv for gaussian blurring. The params are discussed here:
https://docs.opencv.org/4.x/d4/d86/group__imgproc__filter.html#gaabe8c836e97159a9193fb0b11ac52cf1

Their ksize is our gSiz. Their sigmaX and

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
6 replies
@bashsyr
Comment options

@kushalkolar
Comment options

@kushalkolar
Comment options

@bashsyr
Comment options

@bashsyr
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by EricThomson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants