package PEU.P.image; import java.io.IOException; //作者,著作权人: 罗瑶光,浏阳 public class HitAndMiss{ int[][]kernel; int[][]GetRegion; int[][]tempG; private void IV_Temp(int[][]thisG) { tempG=new int[thisG.length][thisG[0].length]; for(int i=0;i0){ temp=1; } } if(kenel[p][q]==0){ if(thisG[i-w/2+p][j-h/2+q]==0){ temp=1; } } if(kenel[p][q]==-1){ temp=1; } last=last+temp; } } if (last==w*h){ tempG[i][j]=thisG[i][j]; } } } return tempG; } }