public class SpatialImage extends Object
Constructor and Description |
---|
SpatialImage(HashMap<String,Integer> hashSampledValue,
HashMap<String,Integer> hashDomainTypes,
ij.ImagePlus img)
Instantiates a new spatial image with given image object.
|
SpatialImage(HashMap<String,Integer> hashSampledValue,
ij.ImagePlus img)
Instantiates a new spatial image given image object.
|
Modifier and Type | Method and Description |
---|---|
void |
createHashDomainTypes()
Creates the hashmap of domain types of spatial image.
|
ArrayList<ArrayList<String>> |
getAdjacentsList()
Gets the list of adjacent of spatial image.
|
org.scijava.vecmath.Point3d |
getDelta()
Gets the delta of spatial image.
|
int |
getDepth()
Gets the depth of spatial image.
|
HashMap<String,Integer> |
getHashDomainNum()
Gets the hashmap of the count number of domains in each domain types.
|
HashMap<String,Integer> |
getHashDomainTypes()
Gets the hashmap of domain types of spatial image.
|
HashMap<String,org.scijava.vecmath.Point3d> |
getHashDomInteriorPt()
Gets the hashmap of domain InteriorPoint of spatial image.
|
HashMap<String,Integer> |
getHashSampledValue()
Gets the hash sampled value of spatial image.
|
int |
getHeight()
Gets the height of spatial image.
|
ij.ImagePlus |
getImage()
Gets the ImageJ image object.
|
byte[] |
getRaw()
Gets the raw data of spatial image in 1D array.
|
String |
getUnit()
Gets the unit of a CoordinateComponent.
|
int |
getWidth()
Gets the width of spatial image.
|
void |
saveAsImage(String path,
String name)
Save image as TIFF file.
|
void |
setAdjacentsList(ArrayList<ArrayList<String>> adjacentsList)
Sets the list of adjacent of spatial image.
|
void |
setDelta(org.scijava.vecmath.Point3d delta)
Sets the delta of spatial image.
|
void |
setDepth(int depth)
Sets the depth of spatial image with given depth value.
|
void |
setHashDomainNum(HashMap<String,Integer> hashDomainNum)
Sets the hashmap of the count number of domains in each domain types with given HashMap<String, Integer>
|
void |
setHashDomainTypes(HashMap<String,Integer> hashDomainTypes)
Sets the hashmap of domain types.
|
void |
setHashDomInteriorpt(HashMap<String,org.scijava.vecmath.Point3d> hashDomInteriorPt)
Sets the hashmap of domain InteriorPoint of spatial image.
|
void |
setHashSampledValue(HashMap<String,Integer> hashSampledValue)
Sets the hashmap of sampled value of spatial image.
|
void |
setHeight(int height)
Sets the height of spatial image with given height value.
|
void |
setImage(ij.ImagePlus image)
Sets the image object and create 1D array of the image and sets to raw object.
|
void |
setRaw(byte[] raw)
Sets the raw data of spatial image in 1D array.
|
void |
setUnit()
Sets the unit of a CoordinateComponent.
|
void |
setWidth(int width)
Sets the width of spatial image with given width value.
|
void |
updateImage(ij.ImageStack imStack)
Update image with given stack of images.
|
public String title
public SpatialImage(HashMap<String,Integer> hashSampledValue, HashMap<String,Integer> hashDomainTypes, ij.ImagePlus img)
hashSampledValue
- the hashmap of sampled value, that is a pixel value of a SampledVolumehashDomainTypes
- the hashmap of domain typesimg
- the image as an ImageJ objectpublic SpatialImage(HashMap<String,Integer> hashSampledValue, ij.ImagePlus img)
hashSampledValue
- the hashmap of sampled value, that is a pixel value of a SampledVolumeimg
- the image as an ImageJ objectpublic void setImage(ij.ImagePlus image)
image
- the new image as an ImageJ objectpublic ij.ImagePlus getImage()
public void updateImage(ij.ImageStack imStack)
imStack
- the stack of images (ImageStack) objectpublic int getWidth()
public void setWidth(int width)
width
- the new width of spatial imagepublic int getHeight()
public void setHeight(int height)
height
- the new height of spatial imagepublic int getDepth()
public void setDepth(int depth)
depth
- the new depth of spatial imagepublic HashMap<String,Integer> getHashSampledValue()
public void setHashSampledValue(HashMap<String,Integer> hashSampledValue)
hashSampledValue
- the hash sampled value of spatial imagepublic byte[] getRaw()
public void setRaw(byte[] raw)
raw
- the new raw data of spatial image in 1D arraypublic HashMap<String,Integer> getHashDomainTypes()
public void setHashDomainTypes(HashMap<String,Integer> hashDomainTypes)
hashDomainTypes
- the hashmap of domain types of spatial imagepublic void createHashDomainTypes()
public HashMap<String,Integer> getHashDomainNum()
public void setHashDomainNum(HashMap<String,Integer> hashDomainNum)
hashDomainNum
- the hashmap of the count number of domains in each domain typespublic ArrayList<ArrayList<String>> getAdjacentsList()
public void setAdjacentsList(ArrayList<ArrayList<String>> adjacentsList)
adjacentsList
- the new list of adjacent of spatial imagepublic void saveAsImage(String path, String name)
path
- the path to the directoryname
- the name of TIFF filepublic String getUnit()
public void setUnit()
public org.scijava.vecmath.Point3d getDelta()
public void setDelta(org.scijava.vecmath.Point3d delta)
delta
- the new delta of spatial imagepublic HashMap<String,org.scijava.vecmath.Point3d> getHashDomInteriorPt()
Copyright © 2017–2019 Funahashi Lab.. All rights reserved.