I want to build a Hessian matrix of a grayscale image but I need to calculate the second order derivatives. I'm working with BoofCV and I found out a function that calculates the first order:
ImageGradient_Gaussian<ImageUInt8,ImageFloat32> gaussian1 = new ImageGradient_Gaussian<ImageUInt8,ImageFloat32>(sigma, -1, ImageUInt8.class, ImageFloat32.class);
gaussian1.process(grayscaleImage, derivX, derivY);
I'm using as an input parameter "sigma" (standard deviation). Is there a function, or an other way, to calculate the second order derivatives using as input sigma and a grayscale image?
I'm open to other Java CV library suggestions.