public class ImageWrapper extends Object
This associates a set of String/Object property pairs with the image. Also keeps track of width and height.
Note that ImagePlus keeps a set Java Properties and lots of ImageJ image classes can give you width and height. I exposed these things in this interface as they are the most important things about images for this demo implementation.
Constructor and Description |
---|
ImageWrapper(ij.process.ImageProcessor imageProcessor)
Creates an ImageWrapper based on an ImageJ ImageProcessor.
|
ImageWrapper(ImageWrapper other)
Creates an ImageWrapper based on another ImageWrapper.
|
ImageWrapper(ImageWrapper other,
String name,
int width,
int height)
Creates an ImageWrapper for a new image based on another ImageWrapper.
|
Modifier and Type | Method and Description |
---|---|
int |
getHeight()
Gets the height of the image.
|
ij.process.ImageProcessor |
getImageProcessor()
Gets the underlying ImageJ ImageProcessor.
|
String |
getName()
Gets the name of the image.
|
int[] |
getPixels()
Gets the pixel array.
|
IPropertyCollection |
getProperties()
Gets the properties associated with this image.
|
int |
getWidth()
Gets the width of the image.
|
String |
toString()
Displayable info for the image.
|
public ImageWrapper(ij.process.ImageProcessor imageProcessor)
imageProcessor
- public ImageWrapper(ImageWrapper other)
other
- public ImageWrapper(ImageWrapper other, String name, int width, int height)
other
- name
- new namewidth
- new widthheight
- new heightpublic ij.process.ImageProcessor getImageProcessor()
public IPropertyCollection getProperties()
public String getName()
public int getWidth()
public int getHeight()
public int[] getPixels()
Copyright © 2015–2022 SciJava. All rights reserved.