SHARE
TWEET

filter.h

a guest Dec 13th, 2019 94 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #pragma once
  2.  
  3. #include <inttypes.h>
  4.  
  5.  
  6. #define IMG_WIDTH 1920
  7. #define IMG_HEIGHT 1080
  8. #define IMG_SIZE (IMG_WIDTH * IMG_HEIGHT)
  9. enum filter { BoxBlur3, BoxBlur5, GaussianBlur, Sobel, Laplacian, LaplacianGaussian };
  10.  
  11. void filter(uint8_t inter_pix[IMG_WIDTH * IMG_HEIGHT], uint8_t out_pix[IMG_WIDTH * IMG_HEIGHT]);
  12. void applyFilter(uint8_t imageIn[IMG_HEIGHT * IMG_WIDTH], uint8_t imageout[IMG_HEIGHT * IMG_WIDTH], int rowLength, int colLength, int curRow, int curCol, enum filter filter);
  13. int getFilterSize(enum filter filter);
  14. void applyKernel(enum filter filter, int pixel, int filterPos, double* result);
  15. double getTangent(double x, double y);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top