Example #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);
 }
Example #2
0
 /// <summary>
 ///
 /// </summary>
 /// <returns></returns>
 public static FrameSource CreateFrameSource_Empty()
 {
     return(FrameSource.CreateEmptySource());
 }
Example #3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="fs"></param>
 /// <param name="output"></param>
 protected override void ProcessImpl(FrameSource fs, OutputArray output)
 {
     // ネイティブ実装なので特別に空で。
 }
Example #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);
Example #8
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="fs"></param>
 /// <param name="output"></param>
 protected abstract void ProcessImpl(FrameSource fs, OutputArray output);
Example #9
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="fs"></param>
 protected override void InitImpl(FrameSource fs)
 {
     // ネイティブ実装なので特別に空で。
 }
Example #10
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="fs"></param>
 /// <param name="output"></param>
 protected override void ProcessImpl(FrameSource fs, OutputArray output)
 {
     // ネイティブ実装なので特別に空で。
 }
Example #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);
 }
Example #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;
 }
Example #13
0
 /// <summary>
 /// 
 /// </summary>
 protected SuperResolution()
 {
     frameSource = null;
     firstCall = true;
 }
Example #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);
Example #16
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="deviceId"></param>
 /// <returns></returns>
 public static FrameSource CreateFrameSource_Camera(int deviceId)
 {
     return(FrameSource.CreateCameraSource(deviceId));
 }
Example #17
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="fs"></param>
 protected abstract void InitImpl(FrameSource fs);