public class ImageEdit extends Object
Constructor and Description |
---|
ImageEdit(SpatialImage spImg)
Instantiates a new image edit with given spatial image object.
|
Modifier and Type | Method and Description |
---|---|
void |
addMembrane()
Adds a membrane between two different domains.
|
void |
countDomain()
Count number of domains in each domain types and store the number to
the hashmap (hashDomainNum<String domain type, Integer count number>).
|
void |
createMembrane()
Creates the membrane.
|
void |
domtype(HashMap<Integer,Integer> num)
Create hashmap of count number of labels and set the value with given
hashmap of pixels.
|
void |
label()
Set the label of each pixel to the 1D array of labels (matrix).
|
public ImageEdit(SpatialImage spImg)
spImg
- the spatial image objectpublic void domtype(HashMap<Integer,Integer> num)
num
- the hashmap of pixels (HashMap<Integer, Integer>).public void label()
public void createMembrane()
public void countDomain()
public void addMembrane()
Copyright © 2017–2019 Funahashi Lab.. All rights reserved.