• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2008 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef bim_HISTOEQ16_EM_H
18 #define bim_HISTOEQ16_EM_H
19 
20 /* ---- includes ----------------------------------------------------------- */
21 
22 /* ---- related objects  --------------------------------------------------- */
23 
24 struct bim_UInt16ByteImage;
25 struct bts_Int16Rect;
26 
27 /* ---- typedefs ----------------------------------------------------------- */
28 
29 /* ---- constants ---------------------------------------------------------- */
30 
31 /* ---- external functions ------------------------------------------------- */
32 
33 /** Histogram equalization of image */
34 void bim_UInt16ByteImage_equalize( struct bim_UInt16ByteImage* imagePtrA );
35 
36 /** Histogram equalization using histogram generated from subregion.
37   * While the histogram is taken only in the specified sub-section of the
38   * image, the equalization, i.e. remapping of the pixel values, is
39   * performed on the whole image.
40   *
41   * @param imagePtrA    pointer to image to be equalized
42   * @param sectionPtrA  section specifying region in image where histogram is
43   *                     generated from
44   */
45 void bim_UInt16ByteImage_equalizeSection( struct bim_UInt16ByteImage* imagePtrA,
46 										  const struct bts_Int16Rect* sectionPtrA );
47 
48 /* ------------------------------------------------------------------------- */
49 
50 #endif /* bim_HISTOEQ16_EM_H */
51 
52