Database System Concepts
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Bartleby Related Questions Icon
Related questions
Question
Java - Remove Gray from RGB
Transcribed Image Text:Summary: Given integer values for red, green, and blue, subtract the gray from each value.
Computers represent color by combining the sub-colors red, green, and blue (rgb). Each sub-color's value can range from 0 to 255. Thus
(255, 0, 0) is bright red, (130, 0, 130) is a medium purple, (0, 0, 0) is black, (255, 255, 255) is white, and (40, 40, 40) is a dark gray. (130, 50,
130) is a faded purple, due to the (50, 50, 50) gray part. (In other words, equal amounts of red, green, blue yield gray).
Given values for red, green, and blue, remove the gray part.
Ex: If the input is:
130 50 130
the output is:
80 0 80
Find the smallest value, and then subtract it from all three values, thus removing the gray.
Note: This page converts rgb values into colors.
1 import java.util.Scanner;
2
3 public class LabProgram {
4
8
public static void main(String[] args) {
/* Type your code here. */
}
Expert Solution
Check MarkThis question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
bartleby
This is a popular solution
bartleby
Trending nowThis is a popular solution!
bartleby
Step by stepSolved in 4 steps with 3 images
Knowledge Booster
Background pattern image
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- Create a code in matlab that goes from the first to the second image, and then from the second to the third imagearrow_forwardWhat is self-emission in computer graphics aand visulization? What quailities does self-emission have?arrow_forwardYou have been hired to design the image system for Big Eyes Bertha, a doll that takes digital pictures through its eyes. If you use an RGB (Red-Green-Blue) color system, with 6 bits for each color channel (6 bits for Red, 6 bits for Green, and 6 bits for Blue), how many different shades of each color will you be able to represent in each channel - that is, how many shades of red can you have in the red channel, how many shades of green in the green channel, and how many shades of blue in the blue channel?arrow_forward
- Suppose that by entering an image file and using the following code in matlab, the filtered image is obtained: 1 2 3 4 5 6 7 8 9 200 400 600 800 1000 1200 X = double (imread ('apple.tiff')); figure (1); image (X); colormap (gray (256)); axis image; title ('Imagen- Original'); h = [-2-1 0 1 2]; Y1 filter 2 (h,X); h = h'; Y filter 2 (h, Y1); figure (2) imagesc (Y); colormap (gray (256)); axis image; title ('Imagen- Filtrada 1); Imagen Original 200 400 600 800 1000 1200 1400 1600 1800 200 400 600 800 1000 1200 200 Imagen Filtrada 600 800 1000 1200 1400 1600 1800 Modify the code in such a way that, through the filtered image file, the original image can be obtained.arrow_forwardBecause rasterizing reduces the visual quality of the output, why do we talk about it?arrow_forwardWhat are the three RGB values for white?arrow_forward
- How are the RGB color beams produced in a display that uses a CRT?arrow_forwardComputer Science Given a 512 x 512 image that consists of a series of 8-pixel wide white, and 8-pixel wide dark lines, where each pixel is 0.1mm wide. What is the spatial frequency of the lines in lp/mm?arrow_forwardThe question is, "How do the CRT display's RGB color beams get made?"arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Text book imageDatabase System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationText book imageStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONText book imageDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- Text book imageC How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONText book imageDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningText book imageProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education