protected void CreateSmoothDeph()
{
smoothDeph1 = new double[pData.Width, pData.Height];
smoothDeph2 = new double[pData.Width, pData.Height];
// Normieren
for (int i = 0; i < pData.Width; i++)
{
for (int j = 0; j < pData.Height; j++)
{
PixelInfo pInfo = pData.Points[i, j];
if (pInfo != null)
{
smoothDeph2[i, j] = pInfo.Coord.Y;
smoothDeph1[i, j] = pInfo.Coord.Y;
// if (pInfo.Coord.Y != 0) { // Unterscheidung, ob Schnitt mit Begrenzung vorliegt.
if (minY > pInfo.Coord.Y && pInfo.Coord.Y != 0)
minY = pInfo.Coord.Y;
if (maxY < pInfo.Coord.Y)
maxY = pInfo.Coord.Y;
//}
}
else
{
smoothDeph1[i, j] = double.MinValue;
smoothDeph2[i, j] = double.MinValue;
}
}
}
// SetSmoothDeph(smoothDeph1, smoothDeph2);
}