Package boofcv.io
Interface MediaManager
- All Known Implementing Classes:
DefaultMediaManager
,JCodecMediaManager
public interface MediaManager
Abstract interface for accessing files, images, and videos. Intended to help
handle regular applications and applets
-
Method Summary
Modifier and TypeMethodDescription<T extends ImageBase<T>>
@Nullable SimpleImageSequence<T>openCamera
(String device, int width, int height, ImageType<T> imageType) Opens the specified webcam.default <T extends ImageBase<T>>
SimpleImageSequence<T>openCameraNotNull
(String fileName, int width, int height, ImageType<T> imageType) @Nullable Reader
default Reader
openFileNotNull
(String fileName) @Nullable BufferedImage
default BufferedImage
openImageNotNull
(String fileName) <T extends ImageBase<T>>
@Nullable SimpleImageSequence<T>default <T extends ImageBase<T>>
SimpleImageSequence<T>openVideoNotNull
(String fileName, ImageType<T> imageInfo)
-
Method Details
-
openFile
-
openFileNotNull
-
openImage
-
openImageNotNull
-
openVideo
@Nullable <T extends ImageBase<T>> @Nullable SimpleImageSequence<T> openVideo(String fileName, ImageType<T> imageInfo) -
openVideoNotNull
default <T extends ImageBase<T>> SimpleImageSequence<T> openVideoNotNull(String fileName, ImageType<T> imageInfo) -
openCamera
@Nullable <T extends ImageBase<T>> @Nullable SimpleImageSequence<T> openCamera(String device, int width, int height, ImageType<T> imageType) Opens the specified webcam.- 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.
-
openCameraNotNull
default <T extends ImageBase<T>> SimpleImageSequence<T> openCameraNotNull(String fileName, int width, int height, ImageType<T> imageType)
-