Package boofcv.io.jcodec
Class JCodecMediaManager
java.lang.Object
boofcv.io.jcodec.JCodecMediaManager
- All Implemented Interfaces:
MediaManager
Media manager for JCodec
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends ImageBase<T>>
SimpleImageSequence<T>openCamera(String device, int width, int height, ImageType<T> imageType) Opens the specified webcam.<T extends ImageBase<T>>
SimpleImageSequence<T>Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface boofcv.io.MediaManager
openCameraNotNull, openFileNotNull, openImageNotNull, openVideoNotNull
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
JCodecMediaManager
public JCodecMediaManager()
-
-
Method Details
-
openFile
- Specified by:
openFilein interfaceMediaManager
-
openImage
- Specified by:
openImagein interfaceMediaManager
-
openVideo
public <T extends ImageBase<T>> SimpleImageSequence<T> openVideo(String fileName, ImageType<T> type) - Specified by:
openVideoin interfaceMediaManager
-
openCamera
public <T extends ImageBase<T>> SimpleImageSequence<T> openCamera(String device, int width, int height, ImageType<T> imageType) Description copied from interface:MediaManagerOpens the specified webcam.- Specified by:
openCamerain interfaceMediaManager- Parameters:
device- Reference to the webcam device. null if you just want to open the defaultwidth- requested image width. Default resolution is any value less than 0height- requested image height. Default resolution is any value less than 0imageType- Type of input image- Returns:
- The image sequence.
-