IMCLIPBOARD
IMCLIPBOARD behaves very much like MATLAB's "CLIPBOARD" function, but it works on image data. You can paste image data from the clipboard to a MATLAB array, and copy MATLAB image data to the clipboard.
From HELP:
IMCLIPBOARD('copy', IMDATA) sets the clipboard content to the image represented by IMDATA. IMDATA must be MxN grayscale (double, uint8, uint16), MxN black and white (logical), MxNx3 true color (double, uint8, uint16)
IMCLIPBOARD('copy', X, MAP) sets the clipboard content to the image data represented by indexed image X with colormap MAP. X must be MxN matrix (double, uint8, uint16) and MAP must be Px3 (double).
IMDATA = IMCLIPBOARD('paste') returns the current image content in the clipboard as a true color image (MxNx3 uint8).
[X, MAP] = IMCLIPBOARD('paste') returns the current image content in the clipboard as an indexed color image.
IMCLIPBOARD('paste') displays the image in a new figure window.
[...] = IMCLIPBOARD('paste', FILENAME) saves the image as FILENAME. FILENAME must be a name to one of the following image formats: JPG, GIF, BMP, PNG, TIF.
Note: IMCLIPBOARD requires Java on all platforms.
Zitieren als
Jiro Doke (2024). IMCLIPBOARD (https://www.mathworks.com/matlabcentral/fileexchange/28708-imclipboard), MATLAB Central File Exchange. Abgerufen.
Kompatibilität der MATLAB-Version
Plattform-Kompatibilität
Windows macOS LinuxKategorien
- Image Processing and Computer Vision > Image Processing Toolbox > Import, Export, and Conversion >
- MATLAB > Environment and Settings >
Tags
Quellenangaben
Inspiriert von: clipboardimage, clipboardpaste
Inspiriert: Model Review Tool, Microscopy Image Browser (MIB), ScreenCapture - screenshot of component, figure or screen
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
1.2.0.1 | Fixed java error that many have mentioned in the comments.
|
||
1.2.0.0 | License update |
||
1.1.0.0 | Updated copyright in Java code. |
||
1.0.0.0 |