|
@@ -62,7 +62,7 @@ SemSegContextTree::SemSegContextTree (const Config *conf, const MultiDataset *md
|
|
|
|
|
|
pixelWiseLabeling = false;
|
|
|
|
|
|
- useRegionFeature = conf->gB (section, "use_reagion_feat", true);
|
|
|
+ useRegionFeature = conf->gB (section, "use_region_feat", true);
|
|
|
if (segmentationtype == "meanshift")
|
|
|
segmentation = new RSMeanShift (conf);
|
|
|
else if (segmentationtype == "none")
|
|
@@ -300,6 +300,15 @@ double SemSegContextTree::getBestSplit (std::vector<NICE::MultiChannelImageT<dou
|
|
|
//use larger window size for context features
|
|
|
tmpws *= 4;
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ if(ft == 1)
|
|
|
+ {
|
|
|
+ if(depth < 8)
|
|
|
+ {
|
|
|
+ ft = 0;
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
x1 = (int)((double)rand() / (double)RAND_MAX * (double)tmpws) - tmpws / 2;
|
|
|
x2 = (int)((double)rand() / (double)RAND_MAX * (double)tmpws) - tmpws / 2;
|