1 / 11

CS 248 – Project 1 Help Session

CS 248 – Project 1 Help Session. (demo) Painting RGB and HSV sliders Brush visualization Weighted mask driven painting HSV checkboxes. Basic painting. Brush region. Brush region. Compositing equation. C new = (1-  ) C old +  C paint. Simple tinting (alpha blending).

yin
Download Presentation

CS 248 – Project 1 Help Session

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CS 248 – Project 1 Help Session • (demo) • Painting • RGB and HSV sliders • Brush visualization • Weighted mask driven painting • HSV checkboxes

  2. Basic painting Brush region Brush region

  3. Compositing equation Cnew = (1-) Cold +  Cpaint Simple tinting (alpha blending) Like painting with partially transparent paint.

  4. Mask driven painting Different pixels of the brush behave differently. Paint every pixel in the brush region Paint only some of the pixels

  5. Weighted mask driven painting Mask contains alpha for each pixel in brush (visualization of this )

  6. RGB interpolation CR = (1-) CR +  paintR CG = (1-) CG +  paintG CB = (1-) CB +  paintB HSV interpolation CH = (1-) CH +  paintH CS = (1-) CS +  paintS CV = (1-) CV +  paintV RGB vs. HSV interpolation (Does it make a difference?)

  7. Hue Saturation Interpolating in HSV and RGB

  8. Hue Saturation Painting in HSV and RGB HSV RGB

  9. Tinting (HSV checkboxes) Choose which HSV components to affect. if (H_check) { CH = (1-) CH +  paintH } if (S_check) { CS = (1-) CS +  paintS } if (V_check) { CV = (1-) CV +  paintV }

  10. Requirements • Correctness (40%) • Don’t crash • Implement all required features • (Read the directions like a lawyer) • Efficiency (20 %) • No noticeable lag while using your application • User Interface (20%) • Programming Style (20%) • Copying code (Don’t do it) • Submitting with ‘freeze’ and ‘submit’

  11. Extra credit (Filter painting) Blurring the image under the brush.

More Related