Reputation: 5594
I am currently doing this to my array:
dataCube = scipy.ndimage.filters.gaussian_filter(dataCube, sigma, truncate=8)
But gaussian_filter()
doesn't seem to have an option of ensuring that the peak/central value of the gaussian is 1. How can I do this?
Would multiplying dataCube * np.sqrt(2*np.pi * sigma**2)
do the trick?
Upvotes: 3
Views: 2445
Reputation: 5152
You could just divide the whole kernel by the middle value, keeping the shape, but normalizing the peak to 1.
Upvotes: 1