public class BalloonPopulation extends Object
Modifier and Type | Field and Description |
---|---|
int |
area |
ArrayList<Balloon> |
BallList |
int[][] |
contacts |
int |
id |
int[][][] |
IMB |
ij.process.ImageProcessor |
ipb |
int |
max_length |
int |
max_n0 |
int |
N |
Matrix |
ref_topo |
boolean[][] |
topo |
int[] |
XXi |
int[] |
YYi |
Constructor and Description |
---|
BalloonPopulation(ij.process.ImageProcessor ip,
int index,
int rgbchannel)
BalloonPopulation constructor: need to specify the image processor it is associated with and the id of the population
|
Modifier and Type | Method and Description |
---|---|
void |
AddNewBalloon(int[] X,
int[] Y)
Add a balloon with custom shape defined by arrays X and Y
|
void |
AddNewBalloon(int x,
int y)
Add a circular balloon centrerd on x,y with id ID
|
void |
calc_area()
compute the area occupied by the colony
|
int[][] |
CenterList()
Produce an array with centers of balloons
|
void |
clear()
clear all balloons in population
|
void |
ConnectExistingBalloons()
initialise the contact data structure
used when loading from file because connectivity is not saved currently (TODO)
|
void |
ConnectRefinedBalloons()
initialise the contact data structure after refine
|
ij.process.ColorProcessor |
Draw_kinematics()
Use the image prossessor associated with the population of cell and use the Fill_balloon method to add a plot of the each balloon
|
ij.process.ColorProcessor |
Draw_lineage(int seq)
Use the image prossessor associated with the population of cell and use the Fill_balloon method to add a plot of the each balloon
|
void |
EnvelopBoundaries()
Find envelop delimiting the boundaries of the population
|
void |
importSeeds(String directory,
String file_name)
Add a circular balloon centrerd on x,y with id ID
|
void |
InitiateGrowingRegion() |
void |
MakeTopo()
Initiate the matrix of cells in contact (the "contacts" 2D array) by null contacts,
and set the potential connection (the "topo" 2D array) for checking during expansion of balloons by a modified delaunay algorithm
|
void |
mass_Geometry()
Determines the geometric properties of each cell, by running the mass_geometry method for every cell in the population
|
void |
modify_boundaries(int[] XXi,
int[] YYi)
Modify the boundaries given a new set of coordinates
|
void |
refineStructure()
Refine the structure of the balloons
|
void |
remove(int i)
remove balloon i
|
void |
sample(float HL)
PLace randomly seeds on the image
|
void |
set_boundaries(int[][][] B)
set the matrix of inside/outside pixels IMB and compute the area occupied by the colony
|
void |
Tick_contact(Balloon B)
perform a contact check from the potential connection "topo" identified before running the expansion
|
void |
Tick_inflate(int PixLevel) |
void |
Tick_inflate(int PixLevel,
int t)
perform a time step of the physical engine for all balloons in the population by calling the Inflate_inc method in balloon
Checks for contacts
|
public ij.process.ImageProcessor ipb
public int N
public int id
public boolean[][] topo
public int[][][] IMB
public int[][] contacts
public Matrix ref_topo
public int area
public int[] XXi
public int[] YYi
public int max_n0
public int max_length
public BalloonPopulation(ij.process.ImageProcessor ip, int index, int rgbchannel)
public void AddNewBalloon(int[] X, int[] Y)
public void AddNewBalloon(int x, int y)
public void importSeeds(String directory, String file_name)
public void remove(int i)
public void clear()
public void ConnectExistingBalloons()
public void ConnectRefinedBalloons()
public void sample(float HL)
public void EnvelopBoundaries()
public void refineStructure()
public void InitiateGrowingRegion()
public void MakeTopo()
public void Tick_inflate(int PixLevel, int t)
public void Tick_inflate(int PixLevel)
public void Tick_contact(Balloon B)
public void set_boundaries(int[][][] B)
public void modify_boundaries(int[] XXi, int[] YYi)
public void calc_area()
public void mass_Geometry()
public ij.process.ColorProcessor Draw_kinematics()
public ij.process.ColorProcessor Draw_lineage(int seq)
public int[][] CenterList()
Copyright © 2015–2021 Fiji. All rights reserved.