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

Color display method for black and white pictures Download PDF

Info

Publication number
CN1504963A
CN1504963A CNA021508240A CN02150824A CN1504963A CN 1504963 A CN1504963 A CN 1504963A CN A021508240 A CNA021508240 A CN A021508240A CN 02150824 A CN02150824 A CN 02150824A CN 1504963 A CN1504963 A CN 1504963A
Authority
CN
China
Prior art keywords
black white
white image
image
piecemeal
color
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.)
Granted
Application number
CNA021508240A
Other languages
Chinese (zh)
Other versions
CN1311413C (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 invention provides a method to convert monochrome picture into color one for display. Its basic steps: divide a binary monochrome picture or the one with gradation effect into blocks; make statistic analysis, to obtain color bit value of the block; make stratified mapping, to obtain color bit value of the stratification; give different colors to different stratifications; and compare and contrast the stratification, give the color corresponding to the stratification to the block, and finish color display program.

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.
So can obtain former colour demonstration of deceiving from the black white image of image or tool gradation effect.
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, the block image procession of the integral multiple wide, that height is non-minimum statistics unit is added P, 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 by 4 * 4 minimum statistics unit 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 (12)

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 point look like to 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 piecemeals of 2 * 2 piecemeals, 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 the bit number of the pixel bit value of this black white image piecemeal is decided on getting color bit number.
8, as claimed in claim 1ly convert black white image the method for coloured image to, it is characterized in that, these gray scale layering numbers of plies are decided on the bit number of the color of being got.
9, as claimed in claim 7ly convert black white image the method for coloured image to, it is characterized in that, each this black white image piecemeal promptly represent this black white image etc. the gray scale layer.
10, as claimed in claim 1ly convert black white image the method for coloured image to, it is characterized in that the density degree that with this black white image by the minimum statistics unit is unit makes this black white image have color continuity behind colour display screen to divide equi intensity curve.
11, 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 and contrast a color mapping table.
12, as claimed in claim 11ly convert black white image the method for coloured image to, it is characterized in that the number of colours of this color table of comparisons is decided on the bit number of getting color.
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 true CN1504963A (en) 2004-06-16
CN1311413C 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)

Cited By (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
CN101912274A (en) * 2010-07-30 2010-12-15 深圳市理邦精密仪器股份有限公司 Method and corresponding device for pseudo-color conversion of all-digital ultrasonic image
CN101667299B (en) * 2009-09-27 2011-12-21 大连海事大学 Method for staining digital image

Family Cites Families (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
JP3830748B2 (en) * 2000-10-13 2006-10-11 株式会社豊田中央研究所 Lane mark emphasis device
JP3543103B2 (en) * 2000-11-02 2004-07-14 学校法人慶應義塾 Color image processing method and processing apparatus
JP2002262105A (en) * 2001-02-27 2002-09-13 Nec Corp Method and device for converting black gradation in monochromatic print of color image

Cited By (4)

* 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
CN101912274A (en) * 2010-07-30 2010-12-15 深圳市理邦精密仪器股份有限公司 Method and corresponding device for pseudo-color conversion of all-digital ultrasonic image
CN101912274B (en) * 2010-07-30 2012-01-11 深圳市理邦精密仪器股份有限公司 Method and corresponding device for pseudo-color conversion of all-digital ultrasonic image

Also Published As

Publication number Publication date
CN1311413C (en) 2007-04-18

Similar Documents

Publication Publication Date Title
US7130461B2 (en) Systems and method for automatically choosing visual characteristics to highlight a target against a background
DE69329049T2 (en) Method of processing data representing three-dimensional graphic objects
CN101213576B (en) Album creating apparatus, album creating method
US20090052781A1 (en) Method, system and program product for representing a perceptual organization of an image
WO2004027695A1 (en) Color naming, color categorization and describing color composition of images
JPH0714031A (en) Drawing method of scalerable three-dimensional boundary line
Gilchrist et al. Articulation effects in lightness: Historical background and theoretical implications
Cutzu et al. Distinguishing paintings from photographs
CN118314054B (en) Image enhancement method based on forest grass wet map spots
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
CN111815733A (en) Video coloring method and system
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
Buchyk et al. Improvement of steganographic methods based on the analysis of image color models
Larabi et al. A fast color quantization using a matrix of local pallets
Blanchard et al. A new pixel-oriented visualization technique through color image
JP2001203899A (en) Method and device for quantizing color
Kekre et al. Augmentation of block truncation coding based image retrieval by using even and odd images with sundry colour spaces
RU2607415C2 (en) Method of identifying multimedia data stream frames basing on correlation analysis of frame images histograms
TW571254B (en) Method for displaying black-and-white image in colors
CN117689656B (en) PC end picture management method and system

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20070418

Termination date: 20201129