CN1311413C - Color display method for black and white pictures - Google Patents

Color display method for black and white pictures Download PDF

Info

Publication number
CN1311413C
CN1311413C CNB021508240A CN02150824A CN1311413C CN 1311413 C CN1311413 C CN 1311413C CN B021508240 A CNB021508240 A CN B021508240A CN 02150824 A CN02150824 A CN 02150824A CN 1311413 C CN1311413 C CN 1311413C
Authority
CN
China
Prior art keywords
white image
black white
piecemeal
black
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CNB021508240A
Other languages
Chinese (zh)
Other versions
CN1504963A (en
Inventor
史新轲
何代水
蔡世光
李黎
涂剑锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inventec Appliances Shanghai Corp
Original Assignee
Inventec Appliances Shanghai Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inventec Appliances Shanghai Corp filed Critical Inventec Appliances Shanghai Corp
Priority to CNB021508240A priority Critical patent/CN1311413C/en
Publication of CN1504963A publication Critical patent/CN1504963A/en
Application granted granted Critical
Publication of CN1311413C publication Critical patent/CN1311413C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

The present invention provides a method for converting black-and-white images into color images for display. The method comprises the following basic steps: dividing a binary black-and-white image or a binary black-and-white image with gradation effect into blocks, obtaining the color bit value of the black-and-white image blocks through statistic analysis, obtaining the color bit value of the layered black-and-white images through stratification mapping, giving different colors to the different black-and-white image stratifications, comparing the black-and-white image stratifications, giving the color corresponding to the stratification of the black-and-white image blocks, and finishing the color display procedure.

Description

Black white image is carried out the colored method that shows
Technical field
The present invention with the soot-and-whitewash data that scale-of-two is preserved, can become coloured image with these data-switching, to be transplanted in the color system easily for some relevant for black white image or scale-of-two (binary) image are carried out the colored a kind of method that shows.
Background technology
The image of handling through scale-of-two has crucial meaning to feature extraction and pattern-recognition, so binary picture all has important use in fields such as industry, medical science, scientific research and commerce.Each pixel of binary picture is only represented by 1 bit, and is promptly non-black promptly white.Therefore in all images pattern, binary picture is again a kind of file minimum, needs the minimum image of memory space, therefore has many pictorial data to be converted into binary picture and preserve.Along with the development of microelectric technique is more and more progressive, color system also is widely used at leisure every field, more and more Duo black-and-white system is replaced by color system, the soot-and-whitewash data of many preciousnesses need be transplanted on the color system by black-and-white system now, therefore be necessary to develop a kind of method that black white image can be carried out colored demonstration, be used for original soot-and-whitewash data are transplanted to the color system easily from black-and-white system.Yet these are by the black white image of colour display screen, still can keep the characteristic of original image.
Summary of the invention
Purpose of the present invention is for providing a kind of method that black white image is converted to coloured image.
In order to reach purpose of the present invention, the invention provides a kind of soot-and-whitewash data that will be kept at originally in the black-and-white system, in color system, handle and the colored method that shows.Method comprises the following step: at first a black white image is pressed minimum statistics unit (MCU, optional 2 * 2,4 * 4 or 8 * 8) and carry out piecemeal; Then black white image is carried out statistical study, obtain the color bit value of this black white image piecemeal; Then the black white image after the statistical study is carried out the layering mapping, obtain the color bit value of black white image layering, the black white image that will have gradation effect carries out the contour hierarchy slicing of gray scale, extracts the color bit value that gray scale equates at interval out with a certain gray scale; The mapping color table of comparisons, the pixel that different gray scales are graded gives different colors; At last the color bit value of black white image piecemeal and the color bit value of black white image layering are compared, give corresponding color, finish the colour display screen program.
The colour that so can obtain the black white image of former black white image or tool gradation effect shows.
Description of drawings
For above-mentioned and other purposes of the present invention, feature and advantage can be become apparent, cited below particularlyly go out preferred embodiment, and conjunction with figs., be described in detail below:
Fig. 1 carries out the colored simple and easy process flow diagram of software that shows with black white image.
Fig. 2 A is 2 * 2 minimum statistics unit method of partition synoptic diagram.
Fig. 2 B is 4 * 4 minimum statistics unit method of partition synoptic diagram.
Fig. 2 C is 8 * 8 minimum statistics unit method of partition synoptic diagram.
Fig. 3 shows that ranks add and the mean value of minimum statistics unit is asked the method synoptic diagram.
Fig. 4 is the piecemeal pixel bit table that shows the pixel bit value of black white image piecemeal.
Fig. 5 is a layering mapping method synoptic diagram.
Fig. 6 is the color sequence table of comparisons, converts monochrome pixels to its colour accordingly.
Embodiment
The present invention system provides a kind of method that shows with colour that black white image is converted to.
General scale-of-two (binary) black white image has gradation effect in order to make it, makes image that continuity more be arranged, and therefore can make scale-of-two and handle, as dithering.Be about to several adjacent in certain zone pixels in shade ratio in regional, determine that each pixel is black or white, so that people's vision forms a kind of illusion, feeling has gradation effect, just reaches the effect of gray scale with the method that reduces precision.
Fig. 1 is for realizing the simple and easy process flow diagram of this method.
Step 1 is carried out the minimum statistics unit and is cut apart.Needs are carried out the colored black white image that shows be divided into several piecemeals (shown in Fig. 2 B) by 4 * 4 minimum statistics unit, the big I of piecemeal is decided in its sole discretion, Fig. 2 A shows and black white image to be divided into 2 * 2 piecemeal, and Fig. 2 C shows and black white image is divided into 8 * 8 piecemeal.
Step 2 judges that whether non-the wide, high of block image be the integral multiple of minimum statistics unit.Any black white image not necessarily just is the integral multiple of minimum statistics unit doing when cutting apart.If the block image after cutting apart is wide, high for the integral multiple of non-minimum statistics unit, then carry out step 3, otherwise skip to step 4.
Step 3 pair block image procession adds.As shown in Figure 3, be the capable interpolation of the block image P of the integral multiple of non-minimum statistics unit with height, make the integral multiple that it is wide, height becomes the minimum statistics unit, make the black white image can complete cutting apart.
Step 4 judges whether that the every minimum statistics unit of cutting apart all disposes.Promptly judging whether to give the color of each piecemeal with mapping, is termination routine if handle.
Step 5 obtains the pixel bit value of block image.Black white image carries out analytic statistics by the minimum statistics unit to block image after over-segmentation.In general, choose the color of how many bits and think mapping, decide on the piece number of getting minimum unit piecemeal.With this example, former black white image be the minimum statistics unit by 4x4 carry out piecemeal (piecemeal 1, piecemeal 2 ..., piecemeal n), therefore the color of getting 4 bits is thought mapping, just gets 16 kinds of colors altogether, thinks mapping so block image is also got the pixel bit value of 4 bits.For asking more accurate pixel bit value, again 4 * 4 minimum statistics unit piecemeal M are carried out 2 * 2 piecemeals, therefore can get 42 * 2 piecemeals (shown in Fig. 3, be respectively B1, B2, B3 and B4), wherein every 2 * 2 piecemeal is divided into 4 again, each little piecemeal is promptly represented a pixel (pixel), so can obtain the pixel bit value of four little piecemeals, then obtains the mean value of 4 pixels.If mean value is 1 greater than its value of getting of 0.5, its value of getting less than 0.5 is 0, so can obtain the pixel bit value of B1, B2, B3 and B4 respectively.Can obtain the pixel bit value of all piecemeals with same method, the value of gained is tabulating, as shown in Figure 4.
Step 6 is carried out the layering mapping, obtains the color bit value of black white image layering.Behind the piecemeal of intact all black white images of statistical study, then carry out the layering mapping.As shown in Figure 5, any width of cloth black white image can regard as two-dimentional coordinate system (x, y) the luminance function f on (x, y), if (x y) regards height on the two-dimentional coordinate system as, can be the layered plane C on some x-y of being parallel to plane like this f.(x y) cuts mutually, and its intersection is a level line, i.e. equi intensity curve D, layering number of plies visual image permissible accuracy and deciding in f on these planes.
Get 16 kinds of colors from the above altogether and think mapping, therefore the layering number of plies of black white image is also according to the color sum of getting, obtain 16 layers of layered plane C etc. gray scale layer (i.e. 16 equi intensity curve D), then obtain etc. the color bit value of gray scale layer at interval with a certain gray scale.The aforementioned minimum statistics unit piecemeal of mentioning to 4 * 4 carries out 2 * 2 again to be analyzed, and is meant that promptly gray scale at interval.Then each etc. the gray scale layer look the color mapping table comparison of its color bit value and Fig. 5, the color bit value of supposing certain first-class gray scale layer is 0101, the color table of comparisons is shown as magenta, then this gray scale layer colour display screen is a magenta; The color bit value of supposing certain first-class gray scale layer is 1011, and the color table of comparisons is shown as darkcyan, and then this gray scale layer colour display screen is a darkcyan.
Step 7 is carried out the color pairing.According to the result of step 5 and step 6 analytic statistics, search that each piecemeal is located in etc. the gray scale layer, give the color of the layering of block image mapping, until the color pairing of finishing whole black white image piecemeals, the colour that can obtain former black white image shows.Can be coloured image so with the black white image colour display screen.
Though the present invention discloses as above with preferred embodiment; right its is not in order to limiting the present invention, anyly is familiar with present technique field person, without departing from the spirit and scope of the present invention; when can being used for a variety of modifications and variations, so protection scope of the present invention is as the criterion when looking the accompanying Claim book.

Claims (7)

1, a kind ofly converts black white image the method for coloured image to, comprise the following steps:
One black white image is carried out piecemeal;
Obtain the pixel bit value of this black white image piecemeal;
To gray scale layerings such as this black white image carry out, obtain the color bit value of these gray scale layerings;
Give different these gray scale layerings with different colors; And
Compare these gray scale layerings, give the color of this black white image piecemeal, finish the colour display screen program with corresponding these gray scale layerings.
2, as claimed in claim 1ly convert black white image the method for coloured image to, it is characterized in that this black white image is the scale-of-two black white image of tool gradation effect.
3, as claimed in claim 1ly convert black white image the method for coloured image to, it is characterized in that, carry out this black white image system and carry out piecemeal according to the minimum statistics unit.
4, as claimed in claim 3ly convert black white image the method for coloured image to, it is characterized in that, have four little piecemeals with this black white image piecemeal of 2x2 piecemeal, each little piecemeal is a pixel.
5, as claimed in claim 4ly convert black white image the method for coloured image to, it is characterized in that the pixel bit value of this black white image piecemeal is obtained by the pixel average of each this black white image piecemeal.
6, the method that black white image is converted to coloured image as claimed in claim 3, it is characterized in that, if wide, the height of this black white image piecemeal are the integral multiple of non-minimum statistics unit, then procession adds, and makes the integral multiple of the minimum statistics unit that it is wide, height becomes this black white image piecemeal.
7, as claimed in claim 1ly convert black white image the method for coloured image to, it is characterized in that these gray scale layering colors obtain according to a color mapping table.
CNB021508240A 2002-11-29 2002-11-29 Color display method for black and white pictures Expired - Fee Related CN1311413C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB021508240A CN1311413C (en) 2002-11-29 2002-11-29 Color display method for black and white pictures

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB021508240A CN1311413C (en) 2002-11-29 2002-11-29 Color display method for black and white pictures

Publications (2)

Publication Number Publication Date
CN1504963A CN1504963A (en) 2004-06-16
CN1311413C true CN1311413C (en) 2007-04-18

Family

ID=34234091

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB021508240A Expired - Fee Related CN1311413C (en) 2002-11-29 2002-11-29 Color display method for black and white pictures

Country Status (1)

Country Link
CN (1) CN1311413C (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100417179C (en) * 2006-04-14 2008-09-03 浙江大学 Single-colour image area colour displacing method for virtual displaying system
CN101667299B (en) * 2009-09-27 2011-12-21 大连海事大学 Method for staining digital image
CN101912274B (en) * 2010-07-30 2012-01-11 深圳市理邦精密仪器股份有限公司 Method and corresponding device for pseudo-color conversion of all-digital ultrasonic image

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002016816A (en) * 2000-06-29 2002-01-18 Seiko Epson Corp Color correction method and color correction device
JP2002123819A (en) * 2000-10-13 2002-04-26 Toyota Central Res & Dev Lab Inc Lane mark emphasizing device
JP2002140700A (en) * 2000-11-02 2002-05-17 Keiogijuku Method and device for processing color image
JP2002262105A (en) * 2001-02-27 2002-09-13 Nec Corp Method and device for converting black gradation in monochromatic print of color image

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002016816A (en) * 2000-06-29 2002-01-18 Seiko Epson Corp Color correction method and color correction device
JP2002123819A (en) * 2000-10-13 2002-04-26 Toyota Central Res & Dev Lab Inc Lane mark emphasizing device
JP2002140700A (en) * 2000-11-02 2002-05-17 Keiogijuku Method and device for processing color image
JP2002262105A (en) * 2001-02-27 2002-09-13 Nec Corp Method and device for converting black gradation in monochromatic print of color image

Also Published As

Publication number Publication date
CN1504963A (en) 2004-06-16

Similar Documents

Publication Publication Date Title
US7130461B2 (en) Systems and method for automatically choosing visual characteristics to highlight a target against a background
Kuhn et al. An efficient naturalness-preserving image-recoloring method for dichromats
WO2004027695A1 (en) Color naming, color categorization and describing color composition of images
Tourancheau et al. Impact of subjective dataset on the performance of image quality metrics
WO2007138551A2 (en) Method and apparatus for volume rendering using depth weighted colorization
Kekre et al. Using assorted color spaces and pixel window sizes for colorization of grayscale images
CN1311413C (en) Color display method for black and white pictures
Mulligan Nonlinear combination rules and the perception of visual motion transparency
US7076112B2 (en) Image processing method
Gago-Calderón et al. Visual quality evaluation of large LED displays based on subjective sensory perception
JP2000509179A (en) Learning method for image analysis system for use in subject analysis and use of the method
Park Histogram-based colour image analysis on tourism photography
Larabi et al. A fast color quantization using a matrix of local pallets
Yang et al. Region-based color fusion method for visible and IR image sequences
Buchyk et al. Improvement of steganographic methods based on the analysis of image color models
TW571254B (en) Method for displaying black-and-white image in colors
Hussain et al. Automatic Colorization and Restoring of gray scale images using Deep Learning
JP2786261B2 (en) Color image processing method
RU2607415C2 (en) Method of identifying multimedia data stream frames basing on correlation analysis of frame images histograms
KR970049862A (en) Image generating apparatus using image processing and method
Di et al. A “classification based method” for color‐composite image generation on an eight‐bit graphics workstation
Calderón González et al. Image Enhancement with Matlab Algorithms
Subedi et al. An Efficient Automatic Digital Image Colorization Method Using Convolutional Neural Network
Gebejes Characterization of Texture and Relation with Color differences
Atencia et al. From detail to global view, an impressionist approach

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20070418

Termination date: 20201129

CF01 Termination of patent right due to non-payment of annual fee