public class VideoWithinVideo extends Object implements VideoDisplayListener<MBFImage>
Modifier and Type | Field and Description |
---|---|
Point2dImpl |
bottomLeftB |
Point2dImpl |
bottomLeftS |
Point2dImpl |
bottomRightB |
Point2dImpl |
bottomRightS |
VideoCapture |
capture |
Jama.Matrix |
captureToVideo |
VideoDisplay<MBFImage> |
display |
List<IndependentPair<Point2d,Point2d>> |
pointList |
MBFImageRenderer |
renderer |
Polygon |
targetArea |
Point2dImpl |
topLeftB |
Point2dImpl |
topLeftS |
Point2dImpl |
topRightB |
Point2dImpl |
topRightS |
XuggleVideo |
video |
File |
videoFile |
Rectangle |
videoRect |
Constructor and Description |
---|
VideoWithinVideo(String videoPath) |
Modifier and Type | Method and Description |
---|---|
void |
afterUpdate(VideoDisplay<MBFImage> display)
Called when the video display is updated and the next frame
is displayed
|
void |
beforeUpdate(MBFImage frame)
Called when the video is about to update
|
void |
copyToCaptureFrame(MBFImage frameWrite) |
static void |
main(String[] args) |
void |
updatePolygon() |
public XuggleVideo video
public VideoCapture capture
public VideoDisplay<MBFImage> display
public Polygon targetArea
public MBFImageRenderer renderer
public List<IndependentPair<Point2d,Point2d>> pointList
public Point2dImpl topLeftS
public Point2dImpl topLeftB
public Point2dImpl topRightS
public Point2dImpl topRightB
public Point2dImpl bottomLeftS
public Point2dImpl bottomLeftB
public Point2dImpl bottomRightS
public Point2dImpl bottomRightB
public Jama.Matrix captureToVideo
public VideoWithinVideo(String videoPath) throws IOException
IOException
public void afterUpdate(VideoDisplay<MBFImage> display)
VideoDisplayListener
afterUpdate
in interface VideoDisplayListener<MBFImage>
display
- the video displaypublic void beforeUpdate(MBFImage frame)
VideoDisplayListener
beforeUpdate
in interface VideoDisplayListener<MBFImage>
frame
- the frame about to be displayedpublic void updatePolygon()
public static void main(String[] args) throws IOException
IOException
public void copyToCaptureFrame(MBFImage frameWrite)