public class ImageStack extends Object
Constructor and Description |
---|
ImageStack() |
Modifier and Type | Method and Description |
---|---|
void |
add(Frame f)
Add a Frame to the end of the stack
|
Frame |
frame(int i)
Returns a Frame of the ith image in the stack
|
int |
getBytesPerPixel() |
String |
getInfo() |
int |
getNumComponents() |
int |
getNumFrames()
The number of frames in the stack
|
int |
getPaddingBottom() |
int |
getPaddingRight() |
double[] |
getSpacings() |
String |
getUnit() |
int |
height()
The height of the image in the stack
|
byte[] |
image(int i,
int component)
Return a byte arryay of the pixels of the ith frame/image in the stack
|
byte[] |
interleave(int idx,
int component,
int count)
Return a byte array of the pixels of the ith frame/image in the stack
|
int |
linesize(int i)
A convenience routine for the size of a line of data (FFmpeg specific)
|
void |
merge(ImageStack other)
Merge the channels from another ImageStack to the end of this one
|
void |
release()
Release the resources used by this class
|
void |
setBytesPerPixel(int bytes_per_pixel) |
void |
setHeight(int height)
Setter method for height
|
void |
setInfo(String info) |
void |
setPaddingBottom(int _padding_bottom) |
void |
setPaddingRight(int _padding_right) |
void |
setSpacings(double spcx,
double spcy,
double spcz) |
void |
setUnit(String unit) |
void |
setWidth(int width)
Setter method for width
|
int |
width()
The width of the images in the stack
|
public int width()
public void setWidth(int width)
width
- - the width of an individual imagepublic int height()
public void setHeight(int height)
height
- - the height of an individual imagepublic int getPaddingRight()
public void setPaddingRight(int _padding_right)
_padding_right
- the _padding_right to setpublic int getPaddingBottom()
public void setPaddingBottom(int _padding_bottom)
_padding_bottom
- the _padding_bottom to setpublic int getNumFrames()
public int getNumComponents()
public int getBytesPerPixel()
public void setBytesPerPixel(int bytes_per_pixel)
public double[] getSpacings()
public void setSpacings(double spcx, double spcy, double spcz)
public String getUnit()
public void setUnit(String unit)
public byte[] image(int i, int component)
i
- - image indexcomponent
- - component indexpublic byte[] interleave(int idx, int component, int count)
idx
- - image indexcomponent
- - component indexcount
- - number of components to usepublic Frame frame(int i)
i
- - image indexpublic int linesize(int i)
i
- - image indexpublic void add(Frame f)
f
- - The Frame to addpublic void merge(ImageStack other)
other
- - The other ImageStack to addpublic void release() throws Exception
Exception
public void setInfo(String info)
public String getInfo()
Copyright © 2015–2021 Fiji. All rights reserved.