摘要:
A method and apparatus for converting multi-level raster shapes into bi-level raster shapes while preserving as much of the visual character of the shape is disclosed. The method and apparatus solve two main problems arising in the task: that of broken continuity (drop-outs) and that of large changes in the width of horizontal and vertical lines on the bi-level raster shape as a result of minute changes on the multi-level shape (stem width aliasing). Drop-outs are handled by identifying certain boundaries between pixels as drop-out warnings. Pixels adjacent to dropout warnings have their coverage values converted from multi-level to bi-level by a process that guarantees that at least one of them will be rounded up. Dropout warnings are found from the outline of the ideal shape used to generate the multi-level shape and represent an approximation to said outline. In a preferred embodiment, the set of drop-out warnings for an outline is the set of pixel boundaries containing the nearest pixel boundary to each intersection of the outline with mid-pixel lines. Stem width aliasing occurs because of rounding errors clustering along horizontal and vertical lines. The present invention minimizes stem width aliasing by a variable threshold technique in which the threshold value used to turn the multi-level coverage value of a pixel into a bi-level value depends on the pixel position. The multiple threshold values are used to scatter the rounding errors over neighboring pixels so that they do not cluster along horizontal or vertical lines and are therefore less apparent to a viewer. In a preferred embodiment, two different threshold values are used in a checkerboard pattern, i.e., the threshold value for every other pixel in the horizontal or vertical direction alternates between the two values.
摘要:
A method and apparatus is described which fills in the pixels missed when drop-out occurs during the fill process of character contours. The character contour is decomposed into a series of rook moves. The pixel selected is the one more covered by the actual shape of the portion of the curve where the rook moves are coincident and dropout occurs. This is dependent upon the slope of each of the curves at the location of dropout. Preferably the length of the sequence of colinear consecutive rook moves is used to approximate the slopes of the curves. The target pixel of the longest sequence of colinear rook moves is more covered than its opposite pixel and therefore the target pixel is set. The target pixel for a rook move is the pixel in the winding direction (i.e., left or right direction) along the rook move. Thus the target pixel of the stronger rook moves will be set and added to the bit map image generated using a outline fill process. In the preferred embodiment, the rook moves are examined to determine the length of a sequence, that is the number of rook moves that are sequentially in alignment with one another. A strength value is then assigned to each of those rook moves in a sequence equal to the number of rook moves in the sequence. The strength value of the rook move is then compared to the strength value of the opposite pixel, that is the pixel opposite the target pixel for a particular rook move. If the strength value of the target pixel of the rook move is greater than the strength of the opposite pixel, the opposite pixel value if reset to zero and the target pixel is set to equal the strength of the sequence. This process is performed for each rook move in a sequence and for each sequence of rook moves around the contour of the character. Once all rook moves have been evaluated, the value is assigned to the pixels of the character according to this process, are adjusted to reflect a bit map image to be displayed. This is achieved by turning on all bits which are greater than zero. The bit map generated is then logically ORed with the bit map generated using the contour fill process to provide a filled character in which drop out is eliminated and the distortion to the character is minimized.
摘要:
Quaternary salt derivatives of 1,4-diphenylazetidin-2-ones useful for the treatment of hypercholesterolemia are disclosed. The compounds are of the general formulae as well as isomers of these formulae.
摘要:
A trajectory and a footprint of a hypothetical pen are each divided into sequences of segments, each segment having a slope associated therewith. The segments of the footprint form a closed sequence and those of the trajectory form a sequence with a beginning and an end. Each of the two approximate envolvents of the thick line are calculated in the same way, from the trajectory segments and the footprint segments. An envolvent is initialized to include the first segment of the trajectory starting at an appropriate offset from the trajectory start point, followed by zero or more footprint segments and then followed by the next trajectory segment until each of the trajectory segments are concatenated. In determining how many footprint segments to concatenate before concatenating the next trajectory segment, the slopes of the last concatenated trajectory segment and the next trajectory segment are compared to the slopes of the footprint segments. If any footprint segments have slopes between the slopes of the last and next trajectory segments, those footprint segments are concatenated before the next trajectory segment is concatenated. The selection of one of the two sets of footprint slope vectors, either the clockwise set or the counterclockwise set, determines which envolvent of the two envolvents are generated.
摘要:
A method and apparatus for minimizing the visual degradation of a typeface wherein the need for the manual input of skilled technicians is eliminated and the important visual components of each character and the relationship of the visual components of each character with the other characters of the typeface are preserved. The characters are analyzed to determine the visual components in the horizontal and vertical direction which comprise each character and the priority of adjustment. Using the visual components determined, starting with the highest priority component, the coordinates describing each character are adjusted according to rules which are dependent upon whether the strokes formed are oriented in the horizontal or vertical direction. The adjustment of the lower priority visual components is dependent on the previously aligned components. The important visual components in the diagonal direction are subsequently adjusted in accordance with similar sized visual components in the horizontal and vertical direction wherein the dimensions of the adjusted horizontal and vertical components are maintained.