#pragma once #include "afx.h" // morphology // LPBYTE source£º binary image pointer input£¬0, and 255 // LPBYTE target: image pointer output // WORD rows: image height // WORD clumns: image width // WORD wDegree: 1~8, eight direction selction. // erode image with a structure of verticle 3 element void BErodeVertical3(LPBYTE source, LPBYTE target, WORD rows, WORD columns); // erode image with a left 45 degree structure of 3 element void BErodeLeft45Degree3(LPBYTE source, LPBYTE target, WORD rows, WORD columns); // erode image with a structure of horizontal 3 element void BErodeHorizontal3(LPBYTE source, LPBYTE target, WORD rows, WORD columns); // erode image with a right 45 degree structure of 3 element void BErodeRight45Degree3(LPBYTE source, LPBYTE target, WORD rows, WORD columns); // dilate image with a structure of verticle 3 element void BDilateVertical3(LPBYTE source, LPBYTE target, WORD rows, WORD columns); // dilate image with a left 45 degree structure of 3 element void BDilateLeft45Degree3(LPBYTE source, LPBYTE target, WORD rows, WORD columns); // dilate image with a structure of horizontal 3 element void BDilateHorizontal3(LPBYTE source, LPBYTE target, WORD rows, WORD columns); // dilate image with a right 45 degree structure of 3 element void BDilateRight45Degree3(LPBYTE source, LPBYTE target, WORD rows, WORD columns); // erode image with a structure of verticle 8 element void BErode3(LPBYTE source, LPBYTE target, WORD wDegree, WORD rows, WORD columns); // dilate image with a structure of verticle 8 element void BDilate3(LPBYTE source, LPBYTE target, WORD wDegree, WORD rows, WORD columns);