#include "edge_sobel.h" EdgeSobel::EdgeSobel(PNM* img, ImageViewer* iv) : EdgeGradient(img, iv) { prepareMatrices(); } EdgeSobel::EdgeSobel(PNM* img) : EdgeGradient(img) { prepareMatrices(); } void EdgeSobel::prepareMatrices() { g_x = math::matrix(3, 3, {-1, 0, 1, -2, 0, 2, -1, 0, 1}); g_y = math::matrix(3, 3, {-1, -2, -1, 0, 0, 0, 1, 2, 1}); } math::matrix* EdgeSobel::rawHorizontalDetection() { math::matrix* x_gradient = new math::matrix(this->image->width(), this->image->height()); qDebug() << Q_FUNC_INFO << "Not implemented yet!"; return x_gradient; } math::matrix* EdgeSobel::rawVerticalDetection() { math::matrix* y_gradient = new math::matrix(this->image->width(), this->image->height()); qDebug() << Q_FUNC_INFO << "Not implemented yet!"; return y_gradient; }