private void HistoMatch(RsImage a, RsImage b) { var w = new RS_Diag.HistoMatch(a, b); if (w.ShowDialog() != System.Windows.Forms.DialogResult.OK) { return; } var data = w.MatchedData; byte[,,] res = new byte[1, data.GetLength(0), data.GetLength(1)]; for (int i = 0; i < data.GetLength(0); i++) { for (int j = 0; j < data.GetLength(1); j++) { res[0, i, j] = data[i, j]; } } AddNewPic(res, a.FileName + "-直方图规定化结果", false); }
private void HistoMatch(RsImage a, RsImage b) { var w = new RS_Diag.HistoMatch(a, b); if (w.ShowDialog() != System.Windows.Forms.DialogResult.OK) return; var data = w.MatchedData; byte[,,] res = new byte[1, data.GetLength(0), data.GetLength(1)]; for (int i = 0; i < data.GetLength(0); i++) { for (int j = 0; j < data.GetLength(1); j++) { res[0, i, j] = data[i, j]; } } AddNewPic(res, a.FileName + "-直方图规定化结果", false); }