private boolean calulateHueSaturation(ij.process.ImageProcessor ip) {
		
		boolean huesaturation = false;
		
		int w = ip.getWidth();
		int h = ip.getHeight();
		
		int [] h_hist = new int [360];
		
		for (int i=0; i<360; i++) {
			h_hist[i] = 0;
		}
		
		//set image as current window
		ImagePlus hs_imp;
		hs_imp = WindowManager.getCurrentImage();
				
		for (int x=0; x<w; x++) {
			for (int y=0; y<h; y++) {
				int [] piksels = hs_imp.getPixel(x,y);
					
				double [] hsv_piksels = RGBtoHSV(piksels[0],piksels[1],piksels[2]);
				
				//if value null set 0
				int h_piksel = (int) hsv_piksels[0];
				
				if (h_piksel <0) {
					h_piksel =0;
				}
				
				h_hist[h_piksel] += 1;
			}
		}
		
		//get max value for histogram
		int h_hist_max =0;
		
		for (int i=0; i<360; i++) {
			if (h_hist_max <h_hist[i]) {
				h_hist_max = h_hist[i];
			}
		}
				
		//calc 5 most highest or lowest frequencies
		int sum_first = 0;
		int sum_last = 0;
		
		for (int i=0; i<5; i++) {
			sum_first += h_hist[i];
			sum_last += h_hist[359-i];
		}
				
		//decide what to do
		int perc_of_max = h_hist_max/7;
		
		if ((sum_first <perc_of_max) ||(sum_last <perc_of_max)) {
			huesaturation = true;
		}
		
	    Window_Closer Wind_Clow = new Window_Closer();
	    Wind_Clow.run(argument);
		
		return huesaturation;
	}