| | |
| | | get |
| | | { |
| | | if (Subject == null) |
| | | { |
| | | return null; |
| | | } |
| | | return Subject.InputImage; |
| | | } |
| | | set |
| | | { |
| | | Subject.InputImage = value; |
| | | |
| | | if (InputImage == null) |
| | | { |
| | | return; |
| | | } |
| | | |
| | | if (InputImage is HObject) |
| | | { |
| | | inputImageHSmartWindowControl.ShowHoImage((HObject)value); |
| | | } |
| | | else if (InputImage is Bitmap) |
| | | { |
| | | TAlgorithm.Bitmap2HObject((Bitmap)value, out HObject image); |
| | | using (HImage image = TAlgorithm.Bitmap2HObject((Bitmap)value)) |
| | | { |
| | | inputImageHSmartWindowControl.ShowHoImage(image); |
| | | } |
| | | } |
| | | else if (InputImage is Mat) |
| | | { |
| | | TAlgorithm.Mat2HObject((Mat)value, out HObject image); |
| | | using (HImage image = TAlgorithm.Mat2HObject((Mat)value)) |
| | | { |
| | | inputImageHSmartWindowControl.ShowHoImage(image); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | public TAlgorithmEdit() { } |
| | | |