com.mathworks.toolbox.javabuilder.Images Class
Namespace: com.mathworks.toolbox.javabuilder
Java utility methods for image data manipulation within MWArrays
Description
Declaration
public class Images extends java.lang.Object
Creation
Declaration
Images()
Methods
renderArrayData |
Create a RenderedImage from the data in the given MWNumericArray. This array must conform to the following restrictions:
Example: Converting figure data in a MWArray to a Buffered Image This example takes an MWArray containing figure data and converts it to a buffered image. It then constructs a byte array the same size as the image. Convert figure data output (a three dimensional numeric array) into a buffered image as follows: BufferedImage img = Images.renderArrayData((MWNumericArray)mwArray); int estimatedSize = img.getHeight()*img.getWidth()*3; byteOutputStream = new ByteArrayOutputStream(estimatedSize); Parameters:
Returns:
|
Methods inherited from class java.lang.Object
.
clone |
Used to create and return a copy of the object it is called on. This method is protected and provides a shallow copy, meaning it copies the values of an object's fields directly. For fields that are objects, it copies references, not the objects themselves. |
equals |
Used to compare two objects for
equality. It checks if the two objects are the same in terms of their content,
rather than just comparing their references. By default, the
|
finalize |
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. |
getClass |
Returns the runtime class of this Object. |
hashCode |
Used to return a hash code
value for the object. This integer value is used for efficiently storing objects
in hash-based collections like |
notify |
|
notifyAll |
Wakes up all threads that are waiting on this object's monitor. |
wait |
Causes
the current thread to wait until another thread invokes the
|
Version History
Introduced in R2006a
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.
Amériques
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)