fn calc_count(&self, histogram: &[i32]) -> i32 {
        let mut count = 0;
        for i in self.r_min..(self.r_max + 1) {
            for j in self.g_min..(self.g_max + 1) {
                for k in self.b_min..(self.b_max + 1) {
                    let index = make_color_index_of(i, j, k);
                    count += histogram[index];
                }
            }
        }

        count
    }
/// Get total count of histogram samples.
Get total count of histogram samples.
Get total count of histogram samples .
fn calc_count(&self, histogram: &[i32]) -> i32 {
        let mut count = 0;
        for i in self.r_min..(self.r_max + 1) {
            for j in self.g_min..(self.g_max + 1) {
                for k in self.b_min..(self.b_max + 1) {
                    let index = make_color_index_of(i, j, k);
                    count += histogram[index];
                }
            }
        }
        count
    }
fn calc_count ( & self , histogram : & [ i32 ] ) -> i32 { let mut count = 0 ; for i in self . r_min .. ( self . r_max + 1 ) { for j in self . g_min .. ( self . g_max + 1 ) { for k in self . b_min .. ( self . b_max + 1 ) { let index = make_color_index_of ( i , j , k ) ; count += histogram [ index ] ; } } } count }
Get total count of histogram samples.
Get total count of histogram samples .
&self
histogram
&[i32]
&self
histogram
&[i32]