Java Code Examples for org.bytedeco.javacv.Java2DFrameConverter#getBufferedImageType()
The following examples show how to use
org.bytedeco.javacv.Java2DFrameConverter#getBufferedImageType() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: LivePlayTest3.java From oim-fx with MIT License | 7 votes |
public BufferedImage getBufferedImage() { Frame capturedFrame = null; boolean flipChannels = false; BufferedImage bufferedImage = null; try { if (start) { if ((capturedFrame = grabber.grab()) != null) { int type = Java2DFrameConverter.getBufferedImageType(capturedFrame); double gamma = type == BufferedImage.TYPE_CUSTOM ? 1.0 : inverseGamma; bufferedImage = converter.getBufferedImage(capturedFrame, gamma, flipChannels, null); Image image = bufferedImage; ImageIcon icon = new ImageIcon(image); playLabel.setIcon(icon); } } } catch (org.bytedeco.javacv.FrameGrabber.Exception e) { e.printStackTrace(); } return bufferedImage; }
Example 2
Source File: CameraVideoPanel.java From oim-fx with MIT License | 6 votes |
public BufferedImage getBufferedImage() { Frame capturedFrame = null; boolean flipChannels = false; BufferedImage bufferedImage = null; try { if (start) { if ((capturedFrame = grabber.grab()) != null) { int type = Java2DFrameConverter.getBufferedImageType(capturedFrame); double gamma = type == BufferedImage.TYPE_CUSTOM ? 1.0 : inverseGamma; bufferedImage = converter.getBufferedImage(capturedFrame, gamma, flipChannels, null); Image image = bufferedImage; ImageIcon icon = new ImageIcon(image); iconLabel.setIcon(icon); } } } catch (org.bytedeco.javacv.FrameGrabber.Exception e) { e.printStackTrace(); } return bufferedImage; }
Example 3
Source File: CameraVideoPanel.java From oim-fx with MIT License | 6 votes |
public Frame getFrame() { Frame capturedFrame = null; boolean flipChannels = false; BufferedImage bufferedImage = null; try { if (start) { if ((capturedFrame = grabber.grab()) != null) { int type = Java2DFrameConverter.getBufferedImageType(capturedFrame); double gamma = type == BufferedImage.TYPE_CUSTOM ? 1.0 : inverseGamma; bufferedImage = converter.getBufferedImage(capturedFrame, gamma, flipChannels, null); Image image = bufferedImage; ImageIcon icon = new ImageIcon(image); iconLabel.setIcon(icon); } } } catch (org.bytedeco.javacv.FrameGrabber.Exception e) { e.printStackTrace(); } return capturedFrame; }
Example 4
Source File: LivePlayTest2.java From oim-fx with MIT License | 6 votes |
public BufferedImage getBufferedImage() { Frame capturedFrame = null; boolean flipChannels = false; BufferedImage bufferedImage = null; try { if (start) { if ((capturedFrame = grabber.grab()) != null) { int type = Java2DFrameConverter.getBufferedImageType(capturedFrame); double gamma = type == BufferedImage.TYPE_CUSTOM ? 1.0 : inverseGamma; bufferedImage = converter.getBufferedImage(capturedFrame, gamma, flipChannels, null); Image image = bufferedImage; ImageIcon icon = new ImageIcon(image); playLabel.setIcon(icon); } } } catch (org.bytedeco.javacv.FrameGrabber.Exception e) { e.printStackTrace(); } return bufferedImage; }
Example 5
Source File: LivePlayTest.java From oim-fx with MIT License | 6 votes |
public BufferedImage getBufferedImage() { Frame capturedFrame = null; boolean flipChannels = false; BufferedImage bufferedImage = null; try { if (start) { if ((capturedFrame = grabber.grab()) != null) { int type = Java2DFrameConverter.getBufferedImageType(capturedFrame); double gamma = type == BufferedImage.TYPE_CUSTOM ? 1.0 : inverseGamma; bufferedImage = converter.getBufferedImage(capturedFrame, gamma, flipChannels, null); Image image = bufferedImage; ImageIcon icon = new ImageIcon(image); playLabel.setIcon(icon); } } } catch (org.bytedeco.javacv.FrameGrabber.Exception e) { e.printStackTrace(); } return bufferedImage; }
Example 6
Source File: CameraVideo.java From oim-fx with MIT License | 6 votes |
public BufferedImage getBufferedImage() { Frame capturedFrame = null; boolean flipChannels = false; BufferedImage bufferedImage = null; try { if (start) { if ((capturedFrame = grabber.grab()) != null) { int type = Java2DFrameConverter.getBufferedImageType(capturedFrame); double gamma = type == BufferedImage.TYPE_CUSTOM ? 1.0 : inverseGamma; bufferedImage = converter.getBufferedImage(capturedFrame, gamma, flipChannels, null); } } } catch (org.bytedeco.javacv.FrameGrabber.Exception e) { e.printStackTrace(); } return bufferedImage; }