OTSMorphology.h 1.6 KB

1234567891011121314151617181920212223242526272829
  1. #pragma once
  2. #include "afx.h"
  3. // morphology
  4. // LPBYTE source£º binary image pointer input£¬0, and 255
  5. // LPBYTE target: image pointer output
  6. // WORD rows: image height
  7. // WORD clumns: image width
  8. // WORD wDegree: 1~8, eight direction selction.
  9. // erode image with a structure of verticle 3 element
  10. void BErodeVertical3(LPBYTE source, LPBYTE target, WORD rows, WORD columns);
  11. // erode image with a left 45 degree structure of 3 element
  12. void BErodeLeft45Degree3(LPBYTE source, LPBYTE target, WORD rows, WORD columns);
  13. // erode image with a structure of horizontal 3 element
  14. void BErodeHorizontal3(LPBYTE source, LPBYTE target, WORD rows, WORD columns);
  15. // erode image with a right 45 degree structure of 3 element
  16. void BErodeRight45Degree3(LPBYTE source, LPBYTE target, WORD rows, WORD columns);
  17. // dilate image with a structure of verticle 3 element
  18. void BDilateVertical3(LPBYTE source, LPBYTE target, WORD rows, WORD columns);
  19. // dilate image with a left 45 degree structure of 3 element
  20. void BDilateLeft45Degree3(LPBYTE source, LPBYTE target, WORD rows, WORD columns);
  21. // dilate image with a structure of horizontal 3 element
  22. void BDilateHorizontal3(LPBYTE source, LPBYTE target, WORD rows, WORD columns);
  23. // dilate image with a right 45 degree structure of 3 element
  24. void BDilateRight45Degree3(LPBYTE source, LPBYTE target, WORD rows, WORD columns);
  25. // erode image with a structure of verticle 8 element
  26. void BErode3(LPBYTE source, LPBYTE target, WORD wDegree, WORD rows, WORD columns);
  27. // dilate image with a structure of verticle 8 element
  28. void BDilate3(LPBYTE source, LPBYTE target, WORD wDegree, WORD rows, WORD columns);