// Use this for initialization void Start() { dataIndex = 0; wordIndex = 0; hSortKey = 0; vSortKey = 0; dSortKey = 0; mouseAttractorKey = 0; mouseAttractorKey2 = 0; scaleUp = GetComponent <AttractorScaleUp>(); avoidScale = GetComponent <AttractorAvoidScale>(); avoid = GetComponent <AttractorAvoid>(); hSort = GetComponent <AttractorHorizontalSort>(); vSort = GetComponent <AttractorVerticalSort>(); scaleUpMouse = GetComponent <AttractorScaleUpMouse>(); frame = GetComponent <AttractorFrame>(); color = GetComponent <AttractorColor>(); keyword = GetComponent <AttractorKeyword>(); language = GetComponent <AttractorLanguage>(); adjustScale = GetComponent <AttractorAdjustScale>(); stroke = GetComponent <StrokeManager>(); CWL = GetComponent <CreateWallLabel>(); }
void Variance(Vector3 hsvAve) { variance = 0; foreach (Vector3 ff in hsvFeature) { variance += AttractorColor.HsvDistance(ff, hsvAve); } variance /= 25; }