Home » U++ Library support » U++ Library : Other (not classified elsewhere) » tif image 16 bit. autolevel  
	
		
		
			| Re: tif image 16 bit. autolevel [message #32232 is a reply to message #32229] | 
			Mon, 02 May 2011 12:03    | 
		 
		
			| 
				
	 | 
 
	
		OK, Now I'm able to print the histogram! 
 
before autolevel: 
  
 
and after autolevel: 
  
 
and the algorithm: 
	
	Vector<XY> hist_data;
	for(int i=0;i<256;++i)
		hist_data << XY(i, 0);
	
	const RGBA *s = ~img;
	const RGBA *e = s + img.GetLength();
	while(s < e) {
		v_curr_value = (s->r+s->g+s->b)/3;
		hist_data[v_curr_value].y++;
		if(hist_data[v_curr_value].y>v_max_y)
			v_max_y = hist_data[v_curr_value].y;
		s++;
	}
 
 
The easy way remain how to compute the autolevel algorithm in base of histogram!
		
		
		
 |  
	| 
		
	 | 
 
 
 |  
  
 
	
	  | 
	 | 
	
		tif image 16 bit. autolevel
		By:  tojocky on Fri, 29 April 2011 08:54  
	 | 
 
	  | 
	 | 
	
		Re: tif image 16 bit. autolevel
		By:  koldo on Fri, 29 April 2011 10:12  
	 | 
 
	  | 
	 | 
	
		Re: tif image 16 bit. autolevel
		By:  tojocky on Fri, 29 April 2011 11:28  
	 | 
 
	  | 
	 | 
	
		Re: tif image 16 bit. autolevel
		By:  tojocky on Fri, 29 April 2011 11:52  
	 | 
 
	  | 
	 | 
	
		Re: tif image 16 bit. autolevel
		
	 | 
 
	  | 
	 | 
	
		Re: tif image 16 bit. autolevel
		By:  tojocky on Fri, 29 April 2011 11:35  
	 | 
 
	  | 
	 | 
	
		Re: tif image 16 bit. autolevel
		By:  mirek on Fri, 29 April 2011 20:13  
	 | 
 
	  | 
	 | 
	
		Re: tif image 16 bit. autolevel
		By:  koldo on Sat, 30 April 2011 09:33  
	 | 
 
	  | 
	 | 
	
		Re: tif image 16 bit. autolevel
		By:  tojocky on Sat, 30 April 2011 18:07  
	 | 
 
	  | 
	 | 
	
		Re: tif image 16 bit. autolevel
		By:  tojocky on Sat, 30 April 2011 18:21  
	 | 
 
	  | 
	 | 
	
		Re: tif image 16 bit. autolevel
		By:  koldo on Sun, 01 May 2011 15:50  
	 | 
 
	  | 
	 | 
	
		Re: tif image 16 bit. autolevel
		By:  tojocky on Mon, 02 May 2011 09:30  
	 | 
 
	  | 
	 | 
	
		Re: tif image 16 bit. autolevel
		By:  koldo on Mon, 02 May 2011 10:17  
	 | 
 
	  | 
	 | 
	
		Re: tif image 16 bit. autolevel
		By:  tojocky on Mon, 02 May 2011 10:30  
	 | 
 
	  | 
	 | 
	
		Re: tif image 16 bit. autolevel
		By:  tojocky on Mon, 02 May 2011 12:03  
	 | 
 
	  | 
	 | 
	
		Re: tif image 16 bit. autolevel
		By:  koldo on Mon, 02 May 2011 14:02  
	 | 
 
	  | 
	 | 
	
		Re: tif image 16 bit. autolevel
		By:  tojocky on Mon, 02 May 2011 16:21  
	 | 
 
	  | 
	 | 
	
		Re: tif image 16 bit. autolevel
		By:  koldo on Mon, 02 May 2011 17:37  
	 | 
 
	  | 
	 | 
	
		Re: tif image 16 bit. autolevel
		By:  tojocky on Thu, 05 May 2011 20:10  
	 | 
 
	  | 
	 | 
	
		Re: tif image 16 bit. autolevel
		By:  tojocky on Thu, 05 May 2011 20:15  
	 | 
 
	  | 
	 | 
	
		Re: tif image 16 bit. autolevel
		By:  koldo on Thu, 05 May 2011 21:28  
	 | 
 
	  | 
	 | 
	
		Re: tif image 16 bit. autolevel
		By:  tojocky on Fri, 06 May 2011 13:25  
	 | 
  
Goto Forum:
 
 Current Time: Tue Nov 04 11:03:34 CET 2025 
 Total time taken to generate the page: 0.05053 seconds 
 |