// Path: src/main/java/fiji/plugin/mamut/feature/spot/CellDivisionTimeAnalyzerSpotFactory.java
// public static final String CELL_DIVISION_TIME = "CELL_DIVISION_TIME";


import javax.swing.ImageIcon;
import org.scijava.plugin.Plugin;
import fiji.plugin.trackmate.Dimension;
import fiji.plugin.trackmate.FeatureModel;
import fiji.plugin.trackmate.Model;
import fiji.plugin.trackmate.Spot;
import fiji.plugin.trackmate.TrackModel;
import fiji.plugin.trackmate.features.track.TrackAnalyzer;
import fiji.plugin.trackmate.graph.ConvexBranchesDecomposition;
import fiji.plugin.trackmate.graph.ConvexBranchesDecomposition.TrackBranchDecomposition;
import fiji.plugin.trackmate.graph.TimeDirectedNeighborIndex;
import static fiji.plugin.mamut.feature.spot.CellDivisionTimeAnalyzerSpotFactory.CELL_DIVISION_TIME;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
				if ( EXCLUDE_OPEN_BRANCHES )
				{
					// Check if this branch arose from a cell division
					final Set< Spot > predecessors = neighborIndex.predecessorsOf( first );
					if ( predecessors.size() == 0 )
					{
						continue;
					}
					final Spot predecessor = predecessors.iterator().next();
					if ( neighborIndex.successorsOf( predecessor ).size() < 2 )
					{
						continue;
					}

					// Check if this branch ends by a cell division
					if ( neighborIndex.successorsOf( last ).size() < 2 )
					{
						continue;
					}
				}

				// Ok, incorporate its duration
				val = last.diffTo( first, Spot.POSITION_T );

				/*
				 * Before we go on, we will add this value as a feature of all
				 * the spots of this branch.
				 */
				for ( final Spot spot : branch )
				{
// Path: src/main/java/fiji/plugin/mamut/feature/spot/CellDivisionTimeAnalyzerSpotFactory.java
// public static final String CELL_DIVISION_TIME = "CELL_DIVISION_TIME";


// Path: src/main/java/fiji/plugin/mamut/feature/track/CellDivisionTimeAnalyzer.java
import javax.swing.ImageIcon;
import org.scijava.plugin.Plugin;
import fiji.plugin.trackmate.Dimension;
import fiji.plugin.trackmate.FeatureModel;
import fiji.plugin.trackmate.Model;
import fiji.plugin.trackmate.Spot;
import fiji.plugin.trackmate.TrackModel;
import fiji.plugin.trackmate.features.track.TrackAnalyzer;
import fiji.plugin.trackmate.graph.ConvexBranchesDecomposition;
import fiji.plugin.trackmate.graph.ConvexBranchesDecomposition.TrackBranchDecomposition;
import fiji.plugin.trackmate.graph.TimeDirectedNeighborIndex;
import static fiji.plugin.mamut.feature.spot.CellDivisionTimeAnalyzerSpotFactory.CELL_DIVISION_TIME;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;

				if ( EXCLUDE_OPEN_BRANCHES )
				{
					// Check if this branch arose from a cell division
					final Set< Spot > predecessors = neighborIndex.predecessorsOf( first );
					if ( predecessors.size() == 0 )
					{
						continue;
					}
					final Spot predecessor = predecessors.iterator().next();
					if ( neighborIndex.successorsOf( predecessor ).size() < 2 )
					{
						continue;
					}

					// Check if this branch ends by a cell division
					if ( neighborIndex.successorsOf( last ).size() < 2 )
					{
						continue;
					}
				}

				// Ok, incorporate its duration
				val = last.diffTo( first, Spot.POSITION_T );

				/*
				 * Before we go on, we will add this value as a feature of all
				 * the spots of this branch.
				 */
				for ( final Spot spot : branch )
				{
					spot.putFeature( CELL_DIVISION_TIME, Double.valueOf( val ) );