Beispiel #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="fs"></param>
 public override void SetInput(FrameSource fs)
 {
     ThrowIfDisposed();
     if (fs == null)
     {
         throw new ArgumentNullException("fs");
     }
     NativeMethods.superres_SuperResolution_setInput(ptr, fs.CvPtr);
 }
Beispiel #2
0
 /// <summary>
 ///
 /// </summary>
 /// <returns></returns>
 public static FrameSource CreateFrameSource_Empty()
 {
     return(FrameSource.CreateEmptySource());
 }
Beispiel #3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="fs"></param>
 /// <param name="output"></param>
 protected override void ProcessImpl(FrameSource fs, OutputArray output)
 {
     // ネイティブ実装なので特別に空で。
 }
Beispiel #4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="fs"></param>
 protected override void InitImpl(FrameSource fs)
 {
     // ネイティブ実装なので特別に空で。
 }
 /// <summary>
 ///
 /// </summary>
 protected SuperResolution()
 {
     frameSource = null;
     firstCall   = true;
 }
 /// <summary>
 /// Set input frame source for Super Resolution algorithm.
 /// </summary>
 /// <param name="fs">Input frame source</param>
 public virtual void SetInput(FrameSource fs)
 {
     frameSource = fs;
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="fs"></param>
 protected abstract void InitImpl(FrameSource fs);
Beispiel #8
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="fs"></param>
 /// <param name="output"></param>
 protected abstract void ProcessImpl(FrameSource fs, OutputArray output);
Beispiel #9
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="fs"></param>
 protected override void InitImpl(FrameSource fs)
 {
     // ネイティブ実装なので特別に空で。
 }
Beispiel #10
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="fs"></param>
 /// <param name="output"></param>
 protected override void ProcessImpl(FrameSource fs, OutputArray output)
 {
     // ネイティブ実装なので特別に空で。
 }
Beispiel #11
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="fs"></param>
 public override void SetInput(FrameSource fs)
 {
     ThrowIfDisposed();
     if (fs == null)
         throw new ArgumentNullException("fs");
     NativeMethods.superres_SuperResolution_setInput(ptr, fs.CvPtr);
 }
Beispiel #12
0
 /// <summary>
 /// Set input frame source for Super Resolution algorithm.
 /// </summary>
 /// <param name="fs">Input frame source</param>
 public virtual void SetInput(FrameSource fs)
 {
     frameSource = fs;
 }
Beispiel #13
0
 /// <summary>
 /// 
 /// </summary>
 protected SuperResolution()
 {
     frameSource = null;
     firstCall = true;
 }
Beispiel #14
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="fileName"></param>
 /// <returns></returns>
 public static FrameSource CreateFrameSource_Video_GPU(string fileName)
 {
     return(FrameSource.CreateVideoSourceGpu(fileName));
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="fs"></param>
 /// <param name="output"></param>
 protected abstract void ProcessImpl(FrameSource fs, OutputArray output);
Beispiel #16
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="deviceId"></param>
 /// <returns></returns>
 public static FrameSource CreateFrameSource_Camera(int deviceId)
 {
     return(FrameSource.CreateCameraSource(deviceId));
 }
Beispiel #17
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="fs"></param>
 protected abstract void InitImpl(FrameSource fs);