cvfilters.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. #ifndef CVFILTERS_H
  2. #define CVFILTERS_H
  3. #include <QImage>
  4. #include <QDebug>
  5. #include <math.h>
  6. #endif // CVFILTERS_H
  7. float **generateGaussianKernel(float variance);
  8. QImage imageConvolution2by2(QImage originalImage, float kernel[][2]);
  9. float **testImageConvolution2by2(QImage originalImage, float kernel[][2]);
  10. QImage normalizeImage(QImage originalImage);
  11. float **matrixImageConvolution3by3(QImage originalImage, float kernel[][3]);
  12. void normalizeMatrix(float **matrixImage, int rows, int cols);
  13. QImage matrixToImage(float **matrixImg, int rows, int cols);
  14. QImage imageConvolution3by3(QImage originalImage, float kernel[][3]);
  15. QImage imageConvolution5by5(QImage originalImage, float kernel[][3]);
  16. QImage gaussianFilter(QImage originalImage);
  17. QImage boxFilter(QImage originalImage);
  18. QImage sharpeningFilter(QImage originalImage);
  19. QImage sobelVerticalFilter(QImage originalImage);
  20. QImage sobelHorizontalFilter(QImage originalImage);
  21. QImage medianFilter(QImage originalImage);
  22. QImage laplacianFilter(QImage originalImage);
  23. QImage rankFilter(QImage originalImage, int dim);
  24. QImage sobelModuleFilter(QImage originalImage);
  25. QImage sobelPhaseFilter(QImage originalImage);
  26. QImage robertsModuleFilter(QImage originalImage);
  27. QImage robertsPhaseFilter(QImage originalImage);
  28. QImage isotropicVerticalFilter(QImage originalImage);
  29. QImage isotropicHorizontalFilter(QImage originalImage);
  30. void matrixConvolutionNbyN(QImage originalImage, float **kernel, int dim, float **matrixImgA);
  31. float getVarianceFromArray(QVector<int> array);
  32. QImage nagaoFilter(QImage originalImage);
  33. QImage isotropicModuleFilter(QImage originalImage);
  34. QImage isotropicPhaseFilter(QImage originalImage);
  35. QImage prewittVerticalFilter(QImage originalImage);
  36. QImage prewittHorizontalFilter(QImage originalImage);
  37. QImage prewittModuleFilter(QImage originalImage);
  38. QImage prewittPhaseFilter(QImage originalImage);
  39. void rotateKernel(float kernel[3][3]);
  40. QImage kirschFilter(QImage originalImage);
  41. QImage threeNineFilter(QImage originalImage);
  42. QImage DoGFilter(QImage originalImage, float firstVar, float secondVar);
  43. QImage uniformNoise(QImage originalImage, int maxNoiseIntensity);
  44. QImage gaussianNoise(QImage originalImage, float mean, float variance);
  45. QImage saltPepperNoise(QImage originalImage, int percentage);
  46. QImage impulseNoise(QImage originalImage, int percentage);