Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a new Processing file and name it as Lab 3 rgb _ yourLastNameFirstNameInitial.pde 2 . Rather than using Super Mario image, you must replace

Create a new Processing file and name it as
Lab3rgb_yourLastNameFirstNameInitial.pde
2. Rather than using Super Mario image, you must replace it with
another image (your choice). Create four PImage type variables to
separate into green and blue channels (e.g., PImage source, imgRed,
imgGreen, imgBlue). Feel free to change into your own variable
names representing your approach. One image will be the source,
and the other three will be used to show different image processing
of the source.
3. Using createImage() method, assign proper values to two other
image variables showing the width and the height of the source
image.
Inside draw() function, design following mechanisms along with for loop
to read pixels;
a) image() function to draw
b) Use red(), green(), and blue() functions to show only red, green, or
blue channels.
c) Mapping between the pixel position, bar height, bar color , font
color and pixel position:
a) To show an interactive RGB value on a specific pixel based on
the position of mouse cursor (mouseX & mouseY), create a bar
graph (e.g., use rect() to create 3 bars) and make the heights
of bars reflecting the intensities of red, green, and blue color
on each pixel. Feel free to choose another shape (through
changing the size of ellipse) showing intensity of color value.
b) Useful Processing commands;
text(), textFont()
Color, image(), fill()
updatePixels();
loadPixels();
d) Apply key interactions to different pre-built filter effects.
e) Based on simple math operators (+,-,*,%), design your own image
processing color filters which can be operated through key board
interaction (e.g., pressing r to increase redness etc.).

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

How does interconnectivity change how we live and work?

Answered: 1 week ago