Answered step by step
Verified Expert Solution
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
LabrgbyourLastNameFirstNameInitial.pde
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 eg 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.
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 eg use rect to create 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 prebuilt filter effects.
e Based on simple math operators design your own image
processing color filters which can be operated through key board
interaction eg pressing r to increase redness etc.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started