Package boofcv.io.wrapper
Class DefaultMediaManager
java.lang.Object
boofcv.io.wrapper.DefaultMediaManager
- All Implemented Interfaces:
MediaManager
The default media manager used by BoofCV. Uses the best available for each data source type.
-
Field Summary
-
Constructor Summary
-
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.@Nullable Reader
@Nullable BufferedImage
<T extends ImageBase<T>>
@Nullable SimpleImageSequence<T>Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface boofcv.io.MediaManager
openCameraNotNull, openFileNotNull, openImageNotNull, openVideoNotNull
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
DefaultMediaManager
public DefaultMediaManager()
-
-
Method Details
-
openFile
- Specified by:
openFile
in interfaceMediaManager
-
openImage
- Specified by:
openImage
in interfaceMediaManager
-
openVideo
@Nullable public <T extends ImageBase<T>> @Nullable SimpleImageSequence<T> openVideo(String fileName, ImageType<T> type) - Specified by:
openVideo
in interfaceMediaManager
-
openCamera
public <T extends ImageBase<T>> SimpleImageSequence<T> openCamera(String device, int width, int height, ImageType<T> imageType) Description copied from interface:MediaManager
Opens the specified webcam.- Specified by:
openCamera
in 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.
-