]> git.sesse.net Git - movit/blobdiff - deconvolution_sharpen_effect_test.cpp
Prefix include guards with _MOVIT to avoid clashes with external files.
[movit] / deconvolution_sharpen_effect_test.cpp
index ec78968dad3cb25798f93bf99da506be7680ef80..6980b3d16b34bac262789ec2bf9632c690e9d3cb 100644 (file)
@@ -1,10 +1,15 @@
 // Unit tests for DeconvolutionSharpenEffect.
 
-#include "test_util.h"
-#include "gtest/gtest.h"
+#include <math.h>
+#include <stdlib.h>
+
 #include "deconvolution_sharpen_effect.h"
+#include "effect_chain.h"
+#include "gtest/gtest.h"
+#include "image_format.h"
+#include "test_util.h"
 
-TEST(DeconvolutionSharpenEffect, IdentityTransformDoesNothing) {
+TEST(DeconvolutionSharpenEffectTest, IdentityTransformDoesNothing) {
        const int size = 4;
 
        float data[size * size] = {
@@ -27,7 +32,7 @@ TEST(DeconvolutionSharpenEffect, IdentityTransformDoesNothing) {
        expect_equal(data, out_data, size, size);
 }
 
-TEST(DeconvolutionSharpenEffect, DeconvolvesCircularBlur) {
+TEST(DeconvolutionSharpenEffectTest, DeconvolvesCircularBlur) {
        const int size = 13;
 
        // Matches exactly a circular blur kernel with radius 2.0.
@@ -76,7 +81,7 @@ TEST(DeconvolutionSharpenEffect, DeconvolvesCircularBlur) {
        expect_equal(expected_data, out_data, size, size, 0.15f, 0.005f);
 }
 
-TEST(DeconvolutionSharpenEffect, DeconvolvesGaussianBlur) {
+TEST(DeconvolutionSharpenEffectTest, DeconvolvesGaussianBlur) {
        const int size = 13;
        const float sigma = 0.5f;
 
@@ -125,7 +130,7 @@ TEST(DeconvolutionSharpenEffect, DeconvolvesGaussianBlur) {
        expect_equal(expected_data, out_data, size, size);
 }
 
-TEST(DeconvolutionSharpenEffect, NoiseAndCorrelationControlsReduceNoiseBoosting) {
+TEST(DeconvolutionSharpenEffectTest, NoiseAndCorrelationControlsReduceNoiseBoosting) {
        const int size = 13;
        const float sigma = 0.5f;