boofcv.io.wrapper
Class DefaultMediaManager
- java.lang.Object
-
- boofcv.io.wrapper.DefaultMediaManager
-
- All Implemented Interfaces:
- MediaManager
public class DefaultMediaManager extends java.lang.Object implements MediaManager
-
-
Field Summary
Fields Modifier and Type Field and Description static DefaultMediaManagerINSTANCE
-
Constructor Summary
Constructors Constructor and Description DefaultMediaManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description <T extends ImageBase>
SimpleImageSequence<T>openCamera(java.lang.String device, int width, int height, ImageType<T> imageType)Opens the specified webcam.java.io.ReaderopenFile(java.lang.String fileName)java.awt.image.BufferedImageopenImage(java.lang.String fileName)<T extends ImageBase>
SimpleImageSequence<T>openVideo(java.lang.String fileName, ImageType<T> type)
-
-
-
Field Detail
-
INSTANCE
public static final DefaultMediaManager INSTANCE
-
-
Method Detail
-
openFile
public java.io.Reader openFile(java.lang.String fileName)
- Specified by:
openFilein interfaceMediaManager
-
openImage
public java.awt.image.BufferedImage openImage(java.lang.String fileName)
- Specified by:
openImagein interfaceMediaManager
-
openVideo
public <T extends ImageBase> SimpleImageSequence<T> openVideo(java.lang.String fileName, ImageType<T> type)
- Specified by:
openVideoin interfaceMediaManager
-
openCamera
public <T extends ImageBase> SimpleImageSequence<T> openCamera(java.lang.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.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG