Claims
- 1. A method for mapping color signals into signals for driving a display which is capable of displaying shades of gray, comprising the steps of:
- receiving a foreground color code and a background color code, each color code having a plurality of bits for controlling a presentation color of a character having a combination of said color codes;
- translating both said foreground color code and said background color code, respectively, into a foreground numeric value and a background numeric value, each said numeric value indicating a particular level of gray;
- producing a magnitude of a difference between said numeric values, said magnitude corresponding to a separation value for said combination of said color codes;
- comparing said separation value to a predetermined threshold value to determine if said separation value is less than said predetermined threshold value; and
- adjusting said numeric values when said separation value is less than said predetermined threshold value.
- 2. A contrast enhancing circuit for translating color signals into signals for driving a display which is capable of displaying shades of gray, comprising:
- means for receiving a foreground color signal and a background color signal;
- means, coupled to said receiving means, for assigning, according to a predefined mapping table, a foreground numeric value representing a particular shade of gray to said foreground color signal and a background numeric value representing a particular shade of gray to said background color signal;
- means, coupled to said assigning means, for generating a magnitude of a difference between said assigned foreground numeric value and said assigned background numeric value;
- means, coupled to said generating means, for determining whether said magnitude of the difference is less than a predefined separation threshold; and
- means, coupled to said determining means, for altering said assigned foreground numeric value by a first predefined value on said assigned background numeric value by a second predefined value, when said magnitude of the difference is less than said predefined separation threshold.
- 3. The circuit of claim 2, wherein said altering means alters said assigned foreground numeric value by modifying said assigned foreground numeric value to represent a still darker shade of gray if said assigned foreground numeric value represents a darker shade of gray than said assigned background numeric value.
- 4. The circuit of claim 2, wherein said altering means alters said assigned background numeric value by modifying said assigned background numeric value to represent a still darker shade of gray if said assigned background numeric value represents a darker shade of gray than said assigned foreground numeric value.
- 5. The circuit of claim 2, wherein said altering means alters said assigned foreground numeric value by modifying said assigned foreground numeric value to represent a still lighter shade of grey if said assigned foreground numeric value represents a lighter shade of gray than said assigned background numeric value.
- 6. The circuit of claim 2, wherein said altering means alters said assigned background numeric value by modifying said assigned background numeric value to represent a still lighter shade of gray if said assigned background numeric value represents a lighter shade of gray than said assigned foreground numeric value.
- 7. A contrast enhancing method for mapping color signals into signals for driving a display which is capable of displaying shades of gray, comprising the steps of:
- receiving a foreground color signal and a background color signal;
- mapping initially, according to a predefined mapping table, said foreground color signal to a foreground numeric value, and said background color signal to a background numeric value;
- determining a magnitude of a difference between said foreground numeric value and said background numeric value;
- comparing said magnitude of the difference to a predefined threshold value to determine whether said magnitude of the difference is less than said predetermined threshold value; and
- altering one of said numeric values when said magnitude of the difference is less than said predefined threshold value.
- 8. The method of claim 7, wherein said altering step further comprises the step of:
- altering said foreground numeric value to represent a still darker shade of gray if said foreground numeric value represents a darker shade of gray than said background numeric value.
- 9. The method of claim 7, wherein said altering step further comprises the step of:
- altering said background numeric value to represent a still darker shade of gray if said background numeric value represents a darker shade of gray than said foreground numeric value.
- 10. The method of claim 7, wherein said altering step further comprises the step of:
- altering said foreground numeric value to represent a still lighter shade of gray if said foreground numeric value represents a lighter shade of gray than said background numeric value.
- 11. The method of claim 7, wherein said altering step further comprises the step of:
- altering said background numeric value to represent a still lighter shade of gray if said background numeric value represents a lighter shade of gray than said foreground numeric value.
- 12. A contrast enhancing circuit for translating color signals into signals for driving a display which is capable of displaying shades of gray, comprising:
- a first initial assignment circuit for receiving a first plurality of signals representing a foreground color signal, and for assigning, according to a predefined mapping table, a foreground numeric value to said first plurality of signals;
- a second initial assignment circuit for receiving a second plurality of signals representing a background color signal, and for assigning, according to said predefined mapping table, a background numeric value to said second plurality of signals;
- a logic subtractor circuit, coupled to both said first initial assignment circuit and said second initial assignment circuit, for generating a magnitude of a difference between said foreground numeric value and said background numeric value;
- a comparator, coupled to said logic subtractor circuit, for setting a modify flag when said magnitude of the difference is less than a predefined separation threshold value;
- a first adder circuit, responsive to said modify flag, for adding a first predefined value to said foreground numeric value; and
- a second adder circuit, responsive to said modify flag, for adding a second predefined value to said background numeric value.
- 13. A contrast enhancing method for mapping color signals into signals for driving a display which is capable of displaying shades of gray, comprising the steps of:
- receiving a foreground color signal and a background color signal;
- mapping initially, according to a predefined mapping table, said foreground color signal to a foreground numeric value; and said background color signal to a background numeric value;
- determining a magnitude of the difference between said foreground numeric value and said background numeric value;
- comparing said magnitude of the difference to a predefined threshold value to determine whether said magnitude of the difference is less than said predetermined threshold value; and
- altering one of said numeric values when said magnitude of the difference is less than said predefined threshold value;
- determining whether a mapping to binary is desired;
- performing said desired mapping to binary by the steps of:
- determining whether both said foreground numeric value and said background numeric value exceed a midpoint value between two extremes of said mapping table; and
- increasing both said foreground numeric value and said background numeric value to the maximum value of said mapping table if both exceed said midpoint value, otherwise decreasing both said foreground numeric value and said background numeric value to the minimum value of said mapping table.
- 14. A contrast enhancing method for mapping color signals into signals for driving a display which is capable of displaying shades of gray, comprising the steps of:
- receiving a foreground color signal and a background color signal;
- mapping initially, according to a predefined mapping table, said foreground color signal to a foreground numeric value, and said background color signal to a background numeric value;
- determining a magnitude of the difference between said foreground numeric value and said background numeric value;
- comparing said magnitude of the difference to a predefined threshold value to determine whether said magnitude of the difference is less than said predetermined threshold value;
- altering one of said numeric value when said magnitude of the difference is less than said predefined threshold value;
- determining whether saturation control is desired; and
- providing for saturation control enabling said numeric values to be altered past a first end of said mapping table to wrap around to a second end of said mapping table if, in the process of altering, either said foreground numeric value or said background numeric value exceed the range of values of said mapping table.
Parent Case Info
This is a continuation of application Ser. No. 07/409,269, filed Sep. 18, 1989, now U.S. Pat. No. 4,977,398, a continuation of application Ser. No. 07/144,849, filed Jan. 15, 1988, now abandoned.
US Referenced Citations (9)
Foreign Referenced Citations (2)
Number |
Date |
Country |
0192815 |
Sep 1986 |
EPX |
WO8603614 |
Jun 1986 |
WOX |
Non-Patent Literature Citations (4)
Entry |
A. Gair, Tonal Values: How to See Them, How to Paint Them, Quatro Publishing, 1987, pp. 6-7, and 18-33. |
P. Norton, Inside the IBM PC, Prentice Hall, 1986, pp. 63-64, 170-175, 184-195, 203-207, and 258-260. |
Options & Adapters Technical Reference: IBM Color/Graphics Monitor Adapter, publication S229-6912-00, P/N 6322509, commercially available from IBM Corporation, pp. iii-34. |
PC Convertible, Technical Reference, publication number SA 23-1047, commercially available from IBM Corporation, pp. 2-45 through 2-62. |
Continuations (2)
|
Number |
Date |
Country |
Parent |
409269 |
Sep 1989 |
|
Parent |
144849 |
Jan 1988 |
|