C# 클래스 OpenCvSharp.VideoWriter

AVI Video File Writer
상속: OpenCvSharp.DisposableCvObject
파일 보기 프로젝트 열기: shimat/opencvsharp 1 사용 예제들

공개 메소드들

메소드 설명
FourCC ( char c1, char c2, char c3, char c4 ) : int

Concatenates 4 chars to a fourcc code. This static method constructs the fourcc code of the codec to be used in the constructor VideoWriter::VideoWriter or VideoWriter::open.

FourCC ( string code ) : int

Concatenates 4 chars to a fourcc code. This static method constructs the fourcc code of the codec to be used in the constructor VideoWriter::VideoWriter or VideoWriter::open.

IsOpened ( ) : bool

Returns true if video writer has been successfully initialized.

Open ( string fileName, FourCC fourcc, double fps, Size frameSize, bool isColor = true ) : void

Creates video writer structure.

Open ( string fileName, int fourcc, double fps, Size frameSize, bool isColor = true ) : void

Creates video writer structure.

Open ( string fileName, string fourcc, double fps, Size frameSize, bool isColor = true ) : void

Creates video writer structure.

Release ( ) : void

VideoWriter ( ) : System

VideoWriter ( string fileName, FourCC fourcc, double fps, Size frameSize, bool isColor = true ) : System

Creates video writer structure.

VideoWriter ( string fileName, int fourcc, double fps, Size frameSize, bool isColor = true ) : System

Creates video writer structure.

VideoWriter ( string fileName, string fourcc, double fps, Size frameSize, bool isColor = true ) : System

Creates video writer structure.

Write ( OpenCvSharp.Mat image ) : void

Writes/appends one frame to video file.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Clean up any resources being used.

비공개 메소드들

메소드 설명
VideoWriter ( IntPtr ptr ) : System

Initializes from native pointer

메소드 상세

Dispose() 보호된 메소드

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool /// If disposing equals true, the method has been called directly or indirectly by a user's code. Managed and unmanaged resources can be disposed. /// If false, the method has been called by the runtime from inside the finalizer and you should not reference other objects. Only unmanaged resources can be disposed. ///
리턴 void

FourCC() 공개 정적인 메소드

Concatenates 4 chars to a fourcc code. This static method constructs the fourcc code of the codec to be used in the constructor VideoWriter::VideoWriter or VideoWriter::open.
public static FourCC ( char c1, char c2, char c3, char c4 ) : int
c1 char
c2 char
c3 char
c4 char
리턴 int

FourCC() 공개 정적인 메소드

Concatenates 4 chars to a fourcc code. This static method constructs the fourcc code of the codec to be used in the constructor VideoWriter::VideoWriter or VideoWriter::open.
public static FourCC ( string code ) : int
code string
리턴 int

IsOpened() 공개 메소드

Returns true if video writer has been successfully initialized.
public IsOpened ( ) : bool
리턴 bool

Open() 공개 메소드

Creates video writer structure.
public Open ( string fileName, FourCC fourcc, double fps, Size frameSize, bool isColor = true ) : void
fileName string Name of the output video file.
fourcc FourCC 4-character code of codec used to compress the frames. For example, "PIM1" is MPEG-1 codec, "MJPG" is motion-jpeg codec etc. /// Under Win32 it is possible to pass null in order to choose compression method and additional compression parameters from dialog.
fps double Framerate of the created video stream.
frameSize Size Size of video frames.
isColor bool If it is true, the encoder will expect and encode color frames, otherwise it will work with grayscale frames (the flag is currently supported on Windows only).
리턴 void

Open() 공개 메소드

Creates video writer structure.
public Open ( string fileName, int fourcc, double fps, Size frameSize, bool isColor = true ) : void
fileName string Name of the output video file.
fourcc int 4-character code of codec used to compress the frames. For example, "PIM1" is MPEG-1 codec, "MJPG" is motion-jpeg codec etc. /// Under Win32 it is possible to pass null in order to choose compression method and additional compression parameters from dialog.
fps double Framerate of the created video stream.
frameSize Size Size of video frames.
isColor bool If it is true, the encoder will expect and encode color frames, otherwise it will work with grayscale frames (the flag is currently supported on Windows only).
리턴 void

Open() 공개 메소드

Creates video writer structure.
public Open ( string fileName, string fourcc, double fps, Size frameSize, bool isColor = true ) : void
fileName string Name of the output video file.
fourcc string 4-character code of codec used to compress the frames. For example, "PIM1" is MPEG-1 codec, "MJPG" is motion-jpeg codec etc. /// Under Win32 it is possible to pass null in order to choose compression method and additional compression parameters from dialog.
fps double Framerate of the created video stream.
frameSize Size Size of video frames.
isColor bool If it is true, the encoder will expect and encode color frames, otherwise it will work with grayscale frames (the flag is currently supported on Windows only).
리턴 void

Release() 공개 메소드

public Release ( ) : void
리턴 void

VideoWriter() 공개 메소드

public VideoWriter ( ) : System
리턴 System

VideoWriter() 공개 메소드

Creates video writer structure.
public VideoWriter ( string fileName, FourCC fourcc, double fps, Size frameSize, bool isColor = true ) : System
fileName string Name of the output video file.
fourcc FourCC 4-character code of codec used to compress the frames. For example, "PIM1" is MPEG-1 codec, "MJPG" is motion-jpeg codec etc. /// Under Win32 it is possible to pass null in order to choose compression method and additional compression parameters from dialog.
fps double Framerate of the created video stream.
frameSize Size Size of video frames.
isColor bool If it is true, the encoder will expect and encode color frames, otherwise it will work with grayscale frames (the flag is currently supported on Windows only).
리턴 System

VideoWriter() 공개 메소드

Creates video writer structure.
public VideoWriter ( string fileName, int fourcc, double fps, Size frameSize, bool isColor = true ) : System
fileName string Name of the output video file.
fourcc int 4-character code of codec used to compress the frames. For example, "PIM1" is MPEG-1 codec, "MJPG" is motion-jpeg codec etc. /// Under Win32 it is possible to pass null in order to choose compression method and additional compression parameters from dialog.
fps double Framerate of the created video stream.
frameSize Size Size of video frames.
isColor bool If it is true, the encoder will expect and encode color frames, otherwise it will work with grayscale frames (the flag is currently supported on Windows only).
리턴 System

VideoWriter() 공개 메소드

Creates video writer structure.
public VideoWriter ( string fileName, string fourcc, double fps, Size frameSize, bool isColor = true ) : System
fileName string Name of the output video file.
fourcc string 4-character code of codec used to compress the frames. For example, "PIM1" is MPEG-1 codec, "MJPG" is motion-jpeg codec etc. /// Under Win32 it is possible to pass null in order to choose compression method and additional compression parameters from dialog.
fps double Framerate of the created video stream.
frameSize Size Size of video frames.
isColor bool If it is true, the encoder will expect and encode color frames, otherwise it will work with grayscale frames (the flag is currently supported on Windows only).
리턴 System

Write() 공개 메소드

Writes/appends one frame to video file.
public Write ( OpenCvSharp.Mat image ) : void
image OpenCvSharp.Mat the written frame.
리턴 void