MSTSegmenter(int width, int height) { // pick random colors for each component double nCell = (double)(width * height); //make our disjoint set - note each element is equally weighted and represents a single pixel at firstB ds = new DisjointSets(width * height); //the graph graph = new List<Edge>(width * height * 4); //adaptive thresholds for each element thresholds = new List<double>(width * height); setmap = new List<int>(width * height); }
MSTSegmenter(int width, int height) { // pick random colors for each component double nCell = (double)(width * height); //make our disjoint set - note each element is equally weighted and represents a single pixel at firstB ds = new DisjointSets(width * height); //the graph graph = new List <Edge>(width * height * 4); //adaptive thresholds for each element thresholds = new List <double>(width * height); setmap = new List <int>(width * height); }