0
我知道如何根據示例使用此函數,我只是想知道是否有任何方法可以解釋這一點。爲什麼在尖括號中有兩個參數,Emgu庫中的一個類:Image <TColor,TDepth>
[SerializableAttribute]
public class Image<TColor, TDepth> : CvArray<TDepth>,
IImage, IDisposable, ICloneable, IEquatable<Image<TColor, TDepth>>
where TColor : new(), ColorType
Image<Bgr, Byte> img =
new Image<Bgr, byte>(fileNameTextBox.Text)
.Resize(400, 400, Emgu.CV.CvEnum.Inter.Linear, true);
我無法提供關於此的更多信息,謝謝!
閱讀有關[C#泛型(https://msdn.microsoft.com/en-us/library/512aeb7t.aspx) –
,然後按[ '圖像文件](http://www.emgu.com/wiki/files/3.1.0-r16.12/document/html/a8929aab-99c5-79cf-385c-dcc7769fea1.htm),它描述了這些類型參數。 –
對不起,使用過時的鏈接,用這個更新我的評論:https://msdn.microsoft.com/en-us/library/512aeb7t.aspx –