public AutoStereogramBuilder(int xResolution, int yResolution, int subpixelsCount = 1, double pixelWidth = 0.0003, double pixelHeight = 0.0003,
double distanceToEyes = 0.5, double distanceBetweenEyes = 0.065)
{
XResolution = xResolution;
YResolution = yResolution;
SubpixelsCount = subpixelsCount;
PixelWidth = pixelWidth;
PixelHeight = pixelHeight;
DistanceToEyes = distanceToEyes;
DistanceBetweenEyes = distanceBetweenEyes;
eyeLeftXPos = XResolution * PixelWidth / 2 - distanceBetweenEyes / 2;
eyeRightXPos = XResolution * PixelWidth / 2 + distanceBetweenEyes / 2;
eyeYPos = YResolution * PixelHeight / 2;
nearestLeft = new int?[XResolutionInternal, YResolution];
nearestRight = new int?[XResolutionInternal, YResolution];
Clear();
}