public ImageInfo(ImageInfo from)
{
_disposed = false;
// copy path
_path = from.getPath();
// copy gray image
_imGray = new Bitmap(from.getIm());
// copy histogram
_hist = from.getHist() == null ? null : copyHist(from.getHist());
// copy _imf
if (from.getImF() != null)
{
_imf = new float[from.getImF().Length];
from.getImF().CopyTo(_imf, 0);
}
else { _imf = null; }
// copy _imb
if (from.getImF() != null)
{
_imb = new byte[from.getImb().Length];
from.getImb().CopyTo(_imb, 0);
}
else { _imb = null; }
// copy size
_width = from.Width;
_height = from.Height;
}