摘要:
Foreground images, such as cursors, may be displayed over an image by selecting individual pixel colors to contrast with surrounding background pixels. The background pixels in, around and behind the foreground image may be converted from a red-green-blue (RGB) color space to a luminance isolating color space, such as YUV, HSL or the like. The converted pixel information may be copied, stored, or drawn into a separate compositing window. After converting to the luminance isolating color space, the luminance values of the pixels may be adjusted to increase the contrast between the foreground image and the background image. Portions of the foreground image may also be blurred, such as by applying a Gaussian or box blur, such as to soften the edges. The pixel information may then be converted back into the RGB color space and blended with the background information using alpha information for the foreground and background images.
摘要:
Foreground images, such as cursors, may be displayed over an image by selecting individual pixel colors to contrast with surrounding background pixels. The background pixels in, around and behind the foreground image may be converted from a red-green-blue (RGB) color space to a luminance isolating color space, such as YUV, HSL or the like. The converted pixel information may be copied, stored, or drawn into a separate compositing window. After converting to the luminance isolating color space, the luminance values of the pixels may be adjusted to increase the contrast between the foreground image and the background image. Portions of the foreground image may also be blurred, such as by applying a Gaussian or box blur, such as to soften the edges. The pixel information may then be converted back into the RGB color space and blended with the background information using alpha information for the foreground and background images.
摘要:
Systems, methods, and apparatus for simulating natural media painting in a digital painting application (or painting simulation module) may more accurately simulate real world painting techniques than conventional painting simulation applications. The digital painting application (or simulation module) may provide a small set of physically meaningful parameters (e.g., canvas wetness, drying rate, and pickup mix ratio). By setting the values of these parameters (or overriding default values for a selected paint type), the user may better control the appearance of brush strokes made by a virtual paint brush on a digital canvas. For example, the length of a brush stroke, the amount of streaking caused by paint picked up during the brush stroke, and/or the mix of paint deposited from a pickup buffer and a reservoir buffer of a brush model may be affected by changing the values of these parameters, thus allowing users to create different realistic painting effects.
摘要:
Systems, methods, and apparatus for simulating natural media painting in a digital painting application (or painting simulation module) may more accurately simulate real world painting techniques than conventional painting simulation applications. The digital painting application (or simulation module) may provide a small set of physically meaningful parameters (e.g., canvas wetness, drying rate, and pickup mix ratio). By setting the values of these parameters (or overriding default values for a selected paint type), the user may better control the appearance of brush strokes made by a virtual paint brush on a digital canvas. For example, the length of a brush stroke, the amount of streaking caused by paint picked up during the brush stroke, and/or the mix of paint deposited from a pickup buffer and a reservoir buffer of a brush model may be affected by changing the values of these parameters, thus allowing users to create different realistic painting effects.
摘要:
Methods and apparatus for providing a local coordinate frame are described. A user may place the tips of all five digits on a multitouch user interface with a natural gesture to provide five touch points. A local coordinate frame may be constructed from the touch points. A local coordinate frame may be computed relative to the entire hand and/or relative to each individual digit. The technique may be agnostic in regard to the orientation of the device and to which hand is used. The user may move or rotate their hand, and the local coordinate frame is adjusted to the new positioning relative to the device. The technique may also infer a relative position of the palm from the digit input points, allowing the display of user interface elements where the elements are visible rather than occluded by the hand.
摘要:
Systems, methods, and apparatus for simulating natural media painting in a digital painting application (or painting simulation module) using a two-layer model of a virtual paint brush may more accurately simulate real world painting techniques than conventional painting simulations. A two-layer brush model may include a reservoir buffer and a pickup buffer to separately represent the paint stored in the belly of a paint brush tip and paint that has been picked up on the surface of the brush tip during a brush stoke, respectively. The two-layer brush model may also include methods that automatically control how virtual paint moves between these layers and a digital canvas. In simulations that employ this two-layer brush model, virtual paint may be deposited on the digital canvas directly from both of the buffers. The amount of paint deposited from each buffer (and/or the ratio of the amounts) may be configurable by a user.
摘要:
Methods and apparatus for providing a local coordinate frame are described. A user may place the tips of all five digits on a multitouch user interface with a natural gesture to provide five touch points. A local coordinate frame may be constructed from the touch points. A local coordinate frame may be computed relative to the entire hand and/or relative to each individual digit. The technique may be agnostic in regard to the orientation of the device and to which hand is used. The user may move or rotate their hand, and the local coordinate frame is adjusted to the new positioning relative to the device. The technique may also infer a relative position of the palm from the digit input points, allowing the display of user interface elements where the elements are visible rather than occluded by the hand.
摘要:
A method, system, and computer-readable storage medium are disclosed for distortion-based mask generation. A respective distortion metric may be determined at each location of a plurality of locations in a two-dimensional representation of a three-dimensional object. The two-dimensional representation may be based on a view of the three-dimensional object. Each respective distortion metric may indicate a degree of distortion in a mapping between the respective location in the two-dimensional representation and a corresponding location in a surface texture of the three-dimensional object. The visual representation of the respective distortion metric at one or more of the plurality of locations may be displayed.
摘要:
A method and apparatus for diffuse indirect lighting computation in a scene is described. An irradiance caching algorithm may be implemented in an indirect lighting module that sparsely computes irradiance in the environment and then interpolates irradiance values between these sparsely computed points. The method for diffuse indirect lighting computation may use cosine weighting in determining nearby sample irradiance points to be used in interpolation. If an object detected by a ray is directly overhead, embodiments may assume a significant amount of occlusion or indirect illumination of that surface point, and thus may weight the ray more heavily. If an object is off to the side, and thus at a shallow angle to a normal of the surface point under test, the ray is given less weight. By using cosine weighting, the indirect lighting module tends to space out sample irradiance points better around edges and cracks than conventional techniques.
摘要:
In some implementations, a method rotates images based on image content to correct image orientation. In some implementations, a method includes obtaining one or more identifications of content depicted in an image and determining a current orientation of the content depicted in the image. The current orientation is determined based on the one or more identifications of the content. An amount of rotation for the image is determined that orients the content closer to a predetermined reference orientation than to the current orientation. The image is rotated by the determined amount.