Storing Digital Images – Our Sensors Peak Around – 425 Nanometers (Blue) – 550 Nanometers (Green) CSC121, Introduction to Computer – 560 Nanometers (Red) Programming

Total Page:16

File Type:pdf, Size:1020Kb

Storing Digital Images – Our Sensors Peak Around – 425 Nanometers (Blue) – 550 Nanometers (Green) CSC121, Introduction to Computer – 560 Nanometers (Red) Programming 2/3/18 Color Images • the human visual system samples the visible light spectrum Storing Digital Images – our sensors peak around – 425 nanometers (blue) – 550 nanometers (green) CSC121, Introduction to Computer – 560 nanometers (red) Programming Color Images RGB Color • We represent color images using composite • most digital photography uses the RGB color color models model employing additive color primaries – separate planes represent specific color channels pigments light 1 2/3/18 RGB Color RGB Color • has three distinct channels: RED, GREEN, and • We will separate the image to compare the BLUE color channels each channel is shown as an intensity image to indicate the relative amount that the color contributes to the composite image RGB Color RGB Color • We will separate the image to compare the • We will separate the image to compare the color channels color channels RED CHANNEL GREEN CHANNEL NOTE: high intensity means high amounts of red; dark means low amounts 2 2/3/18 RGB Color CMYK Color • We will separate the image to compare the • The CYAN-MAGENTA- CYAN color channels YELLOW-BLACK* or CMYK color model is GREEN used for printing and BLUE based on subtractive BLACK WHITE BLUE CHANNEL primaries YELLOW MAGENTA RED *Black is added for print efficiency CMY Color Cube Color Images Color Images • the alpha channel is a fourth channel that is • We will be using mostly used as a mask to specify the JPEG images for our transparency/opacity of pixels in the programming composite image • Joint Photographers Expert Group images – baseline: lossy compression algorithm – variable compression rates 3 2/3/18 Example Example Quality = 100, Compression = 2.6:1 Quality = 50, Compression = 15:1 Quality = 25, Compression = 23:1 Quality = 10, Compression = 48:1 Example The If statement • We have used the If statement in two forms one-way if (condition): decision statement block if (condition): two-way statement block-1 decision Quality = 1, Compression = 144:1 else: statement block-2 4 2/3/18 Conditional Logic The elif statement • We can extend the range of choice with Python’s elif if (condition): statement block-a elif (condition): three-way statement block-b decision else: statement block-c if statement if-else statement Conditional Logic Conditional Logic def choice(): choice = input("Enter your choice: 1 or 2: ") if choice == 1: print "Your choice is 1” elif choice == 2: print "Your choice is 2” else: print "Invalid choice" if-elif-else statement 5.
Recommended publications
  • In Concert with Teaching Strategies That Have a Solid Theoretical Basis
    1 www.onlineeducation.bharatsevaksamaj.net www.bssskillmission.in “Teaching and Learning Technology”. In Section 1 of this course you will cover these topics: Learning And Instruction Computer Applications In Education The Impact Of The Computer On Education Topic : Learning And Instruction Topic Objective: At the end of this topic student would be able to understand: Computer's Role In Instruction Instructional Technology Early Applications The Internet Era Outcomes Research Social Context Gagne's Nine Events of Instruction Definition/Overview: The first topic establishes a framework for looking at the computer's role in instruction and examines its role in student learning. A brief review of behaviorist and constructivist theories of instruction and learning is presented. The intent is to demonstrate that the computer can be a practical tool usedWWW.BSSVE.IN in concert with teaching strategies that have a solid theoretical basis. We recognize that thinking patterns and learning styles vary and that many different cognitive processes and intelligences should be valued. This topic presents a brief overview of types of intelligences, perception and motivation in order to emphasize the importance of analyzing student populations and matching instructional materials to student needs. Recognizing the important role that software plays in instruction and learning, a good deal of discussion takes place on the selection and evaluation of effective software. www.bsscommunitycollege.in www.bssnewgeneration.in www.bsslifeskillscollege.in 2 www.onlineeducation.bharatsevaksamaj.net www.bssskillmission.in Key Points: 1.Computer's Role in Instruction American education has long incorporated technology in K-12 classrooms tape recorders, televisions, calculators, computers, and many others.
    [Show full text]
  • A Method of Content-Based Image Retrieval for the Generation of Image Mosaics
    University of Central Florida STARS Electronic Theses and Dissertations, 2004-2019 2007 A Method Of Content-based Image Retrieval For The Generation Of Image Mosaics Michael Snead University of Central Florida Part of the Computer Engineering Commons Find similar works at: https://stars.library.ucf.edu/etd University of Central Florida Libraries http://library.ucf.edu This Masters Thesis (Open Access) is brought to you for free and open access by STARS. It has been accepted for inclusion in Electronic Theses and Dissertations, 2004-2019 by an authorized administrator of STARS. For more information, please contact [email protected]. STARS Citation Snead, Michael, "A Method Of Content-based Image Retrieval For The Generation Of Image Mosaics" (2007). Electronic Theses and Dissertations, 2004-2019. 3358. https://stars.library.ucf.edu/etd/3358 A METHOD OF CONTENT-BASED IMAGE RETRIEVAL FOR THE GENERATION OF IMAGE MOSAICS by MICHAEL CHRISTOPHER SNEAD B.S. University of Central Florida, 2005 A thesis submitted in partial fulfillment of the requirements for the degree of Master of Science in the School of Electrical Engineering and Computer Science in the College of Engineering & Computer Science at the University of Central Florida Orlando, Florida Spring Term 2007 © 2007 Michael Christopher Snead ii ABSTRACT An image mosaic is an artistic work that uses a number of smaller images creatively combined together to form another larger image. Each building block image, or tessera, has its own distinctive and meaningful content, but when viewed from a distance the tesserae come together to form an aesthetically pleasing montage. This work presents the design and implementation of MosaiX, a computer software system that generates these image mosaics automatically.
    [Show full text]
  • First Semester
    NATIONAL UNIVERSITY F o u r t h Y e a r S y l l a b u s D e p a r t m e n t of Computer Science and Engineering Four Year B.Sc. Honours Course Effective from the Session: 2017–2018 National University Subject: Computer Science and Engineering Syllabus for Four Year B.Sc. Honours Course Effective from the Session: 2017-2018 Year wise courses and marks distribution FOURTH YEAR Semester VII Course Code Course Title Credit Hours 540201 Artificial Intelligence 3.0 540202 Artificial Intelligence Lab 1.5 540203 Compiler Design and Construction 3.0 540204 Compiler Design Lab 1.5 540205 Computer Graphics 3.0 540206 Computer Graphics Lab 1.5 540207 E-Commerce and Web Engineering 3.0 540208 E-Commerce and Web Engineering Lab 1.5 Total Credits in 7th Semester 18.0 Semester VIII Course Code Course Title Credit Hours Major Theory Courses 540209 Network and Information Security 3.0 540210 Network and Information Security Lab 1.5 540211 Information System Management 3.0 Project/Industry Attachment 540240 Project/Industry Attachment 6.0 Optional Course (any one) 3.0 540212 Simulation and Modeling 540214 Parallel and Distributed Systems 540216 Digital Signal Processing 540218 Digital Image Processing 540220 Multimedia 540222 Pattern Recognition 540224 Design and Analysis of VLSI Systems 540226 Micro-controller and Embedded System 540228 Cyber Law and Computer Forensic 540230 Natural Language Processing 540232 System Analysis and Design 540234 Optical Fiber Communication 540236 Human Computer Interaction 540238 Graph Theory Page 2 of 18 Optional Course
    [Show full text]
  • Working with Colors
    Working With Colors INK: The physical form of color; Ink is how color is applied to paper There are two different types of inks: • TRANSPARENT INKS are commonly used in printing • OPAQUE INKS are considered a specialty ink and generally cost more COLOR: in printing, there are two types of color modes: • SPOT COLOR; aka: Match color, PMS color, Solid color • 4-COLOR PRocESS; aka: Process, CMYK Working With Colors With Working SPot COLOR • A pre-mixed color; a color mixed prior to the printing press PMS : PANtoNE MAtcHING SYSTEM • Color system that has several color libraries for reference in reproducing color • Popular PMS color libraries: • Spot color Formula guide (coated, uncoated, and matte versions) solid color guide that identifies specific colors • 4-Color Process Guide (coated and uncoated versions) identifies colors using CMYK inks • Color Bridge (coated and uncoated versions) using the colors from the spot color Formula guide this book shows the difference Working With Colors With Working between a spot color and the same color when converted to CMYK • Metallic Inks • Pastels • Tints • www.pantone.com COATED: Paper stock that has been treated with a special coating in order to have a glossy appearance. • Ink sits on this type of paper stock as a result of the glossy coating • Colors appear to be brighter compared to uncoated paper Matte: coated paper stock that has been dulled UNcoATED : Paper stock that has not been treated; it has no coating. • Ink is absorbed into this type of paper stock • Ink color appears darker and duller Working With Colors With Working BENEFit OF USING SPot coLOR: • consistent color within a print job.
    [Show full text]
  • Chapter 2 Fundamentals of Digital Imaging
    Chapter 2 Fundamentals of Digital Imaging Part 4 Color Representation © 2016 Pearson Education, Inc., Hoboken, 1 NJ. All rights reserved. In this lecture, you will find answers to these questions • What is RGB color model and how does it represent colors? • What is CMY color model and how does it represent colors? • What is HSB color model and how does it represent colors? • What is color gamut? What does out-of-gamut mean? • Why can't the colors on a printout match exactly what you see on screen? © 2016 Pearson Education, Inc., Hoboken, 2 NJ. All rights reserved. Color Models • Used to describe colors numerically, usually in terms of varying amounts of primary colors. • Common color models: – RGB – CMYK – HSB – CIE and their variants. © 2016 Pearson Education, Inc., Hoboken, 3 NJ. All rights reserved. RGB Color Model • Primary colors: – red – green – blue • Additive Color System © 2016 Pearson Education, Inc., Hoboken, 4 NJ. All rights reserved. Additive Color System © 2016 Pearson Education, Inc., Hoboken, 5 NJ. All rights reserved. Additive Color System of RGB • Full intensities of red + green + blue = white • Full intensities of red + green = yellow • Full intensities of green + blue = cyan • Full intensities of red + blue = magenta • Zero intensities of red , green , and blue = black • Same intensities of red , green , and blue = some kind of gray © 2016 Pearson Education, Inc., Hoboken, 6 NJ. All rights reserved. Color Display From a standard CRT monitor screen © 2016 Pearson Education, Inc., Hoboken, 7 NJ. All rights reserved. Color Display From a SONY Trinitron monitor screen © 2016 Pearson Education, Inc., Hoboken, 8 NJ.
    [Show full text]
  • Computational RYB Color Model and Its Applications
    IIEEJ Transactions on Image Electronics and Visual Computing Vol.5 No.2 (2017) -- Special Issue on Application-Based Image Processing Technologies -- Computational RYB Color Model and its Applications Junichi SUGITA† (Member), Tokiichiro TAKAHASHI†† (Member) †Tokyo Healthcare University, ††Tokyo Denki University/UEI Research <Summary> The red-yellow-blue (RYB) color model is a subtractive model based on pigment color mixing and is widely used in art education. In the RYB color model, red, yellow, and blue are defined as the primary colors. In this study, we apply this model to computers by formulating a conversion between the red-green-blue (RGB) and RYB color spaces. In addition, we present a class of compositing methods in the RYB color space. Moreover, we prescribe the appropriate uses of these compo- siting methods in different situations. By using RYB color compositing, paint-like compositing can be easily achieved. We also verified the effectiveness of our proposed method by using several experiments and demonstrated its application on the basis of RYB color compositing. Keywords: RYB, RGB, CMY(K), color model, color space, color compositing man perception system and computer displays, most com- 1. Introduction puter applications use the red-green-blue (RGB) color mod- Most people have had the experience of creating an arbi- el3); however, this model is not comprehensible for many trary color by mixing different color pigments on a palette or people who not trained in the RGB color model because of a canvas. The red-yellow-blue (RYB) color model proposed its use of additive color mixing. As shown in Fig.
    [Show full text]
  • C9600 Printing Guide V1.0
    Copyright Information Copyright © 2007 by Oki Data. All Rights Reserved Document Information ________________________________ C9600 Printing Guide P/N 59373001 Revision 3.0 February, 2007 Disclaimer__________________________________________ Every effort has been made to ensure that the information in this document is complete, accurate, and up-to-date. The manufacturer assumes no responsibility for the results of errors beyond its control. The manufacturer also cannot guarantee that changes in software and equipment made by other manufacturers and referred to in this guide will not affect the applicability of the information in it. Mention of software products manufactured by other companies does not necessarily constitute endorsement by the manufacturer . While all reasonable efforts have been made to make this document as accurate and helpful as possible, we make no warranty of any kind, expressed or implied, as to the accuracy or completeness of the information contained herein. The most up-to-date drivers and manuals are available from the web site: http://www.okiprintingsolutions.com Trademark Information _______________________________ Oki and Oki Printing Solutions are registered trademarks of Oki Electric Industry Company Ltd. Adobe and PostScript are registered trademarks of Adobe Systems. Apple, Macintosh, Mac, and Mac OS are registered trademarks of Apple Computers Inc. Hewlett-Packard, HP, and LaserJet are registered trademarks of Hewlett-Packard Company. Microsoft, MS-DOS and Windows are either registered trademarks or trademarks
    [Show full text]
  • Basics of Color Management
    Application Notes Basics of Color Management Basics of Color Management ErgoSoft AG Moosgrabenstr. 13 CH-8595 Altnau, Switzerland © 2010 ErgoSoft AG, All rights reserved. The information contained in this manual is based on information available at the time of publication and is sub- ject to change without notice. Accuracy and completeness are not warranted or guaranteed. No part of this manual may be reproduced or transmitted in any form or by any means, including electronic me- dium or machine-readable form, without the expressed written permission of ErgoSoft AG. Brand or product names are trademarks of their respective holders. The ErgoSoft RIP is available in different editions. Therefore the description of available features in this document does not necessarily reflect the license details of your edition of the ErgoSoft RIP. For information on the features included in your edition of the ErgoSoft RIPs refer to the ErgoSoft homepage or contact your dealer. Rev. 1.1 Basics of Color Management i Contents Introduction ................................................................................................................................................................. 1 Color Spaces ................................................................................................................................................................ 1 Basics ........................................................................................................................................................................ 1 CMYK .......................................................................................................................................................................
    [Show full text]
  • 14. Color Mapping
    14. Color Mapping Jacobs University Visualization and Computer Graphics Lab Recall: RGB color model Jacobs University Visualization and Computer Graphics Lab Data Analytics 691 CMY color model • The CMY color model is related to the RGB color model. •Itsbasecolorsare –cyan(C) –magenta(M) –yellow(Y) • They are arranged in a 3D Cartesian coordinate system. • The scheme is subtractive. Jacobs University Visualization and Computer Graphics Lab Data Analytics 692 Subtractive color scheme • CMY color model is subtractive, i.e., adding colors makes the resulting color darker. • Application: color printers. • As it only works perfectly in theory, typically a black cartridge is added in practice (CMYK color model). Jacobs University Visualization and Computer Graphics Lab Data Analytics 693 CMY color cube • All colors c that can be generated are represented by the unit cube in the 3D Cartesian coordinate system. magenta blue red black grey white cyan yellow green Jacobs University Visualization and Computer Graphics Lab Data Analytics 694 CMY color cube Jacobs University Visualization and Computer Graphics Lab Data Analytics 695 CMY color model Jacobs University Visualization and Computer Graphics Lab Data Analytics 696 CMYK color model Jacobs University Visualization and Computer Graphics Lab Data Analytics 697 Conversion • RGB -> CMY: • CMY -> RGB: Jacobs University Visualization and Computer Graphics Lab Data Analytics 698 Conversion • CMY -> CMYK: • CMYK -> CMY: Jacobs University Visualization and Computer Graphics Lab Data Analytics 699 HSV color model • While RGB and CMY color models have their application in hardware implementations, the HSV color model is based on properties of human perception. • Its application is for human interfaces. Jacobs University Visualization and Computer Graphics Lab Data Analytics 700 HSV color model The HSV color model also consists of 3 channels: • H: When perceiving a color, we perceive the dominant wavelength.
    [Show full text]
  • Color Detection and Mixing System
    International Journal of Computer Applications Technology and Research Volume 6–Issue 9, 431-433, 2017, ISSN:-2319–8656 Color Detection and Mixing System Khalid Ammar Amira Duhair Lara Bilal Department of Computer Eng Department of Computer Eng Department of Computer Eng Ajman University Ajman University Ajman University Ajman, UAE Ajman, UAE Ajman, UAE Abstract: The detection of the color value and the automation of its production is very useful for many industrial applications. [3, 4]. We have developed a microcontroller-based system that detects colors and controls the mixing of the primary colors to get the matching colors. The system can be used as a tool to determine the compositions of chosen colors and produce a matching colors that meets the requirement of the required colors. The system can make the production of the colors much faster, more reliable and more consistent. This document describes the design, the implementation of the system. The system can be used as a tool in different industries such as digital printing, textile, cosmetics, wallpaper, gift-wrap, building materials, signage, etc [3, 4]. Keywords: Digital paint, Color making and mixing, digital printing, paint products. 1. INTRODUCTION All colors that we can see can be composed from a set of primary colors [5,6,7]. Detection of the composition of chosen color and its automated generation has a wide range of applications [3,4]. A color models (known as color spaces) can represent a chosen color using a set of primary colors mapped to the color model in discrete values. Many color models are used to describe colors, each model is used for RGB CMYK different purposes and different areas of applications.
    [Show full text]
  • Color Management the Basics Simply Explained
    How-to: AccurioPro Flux Color management The basics simply explained In this How-to, we explain why color management is necessary and what happens in the background. AccurioPro Flux | Color management: The basics simply explained The colors in a print job can come from different sources: Images from cameras or scanners, as well as graphics, text and layout from various applications. In each source, color can be defined differently. Also the output of each printer is a little different. One printer can print many colors, another only a few. Even printers of the same type and manufacturer always print colors a little differently. In addition, the color rendering is influenced by the toner used and the selected paper. With good color management, it is possible to control the colors in the print job and set up a color-constant printing process. The aim is to achieve a constant color rendering across the various printers and papers according to a predefined standard. If you print a job on different printers with the same paper, you get consistent color rendering. If a customer orders a print job at a later date, they receive an output in the same colors as for the initial order. A few basics in advance for a better understanding: What is a color space A color space includes all the colors that a device or medium can display. The larger a color space is, the more colors can be displayed. Each printer and monitor has its own color space. These color spaces vary in size so that different monitors and printers can display different numbers of colors.
    [Show full text]
  • Glossary of Color Terms
    Glossary of Color Terms Color Gamut The entire range of colors available on a particular device, such as a monitor or a printer. A color gamut is measured inside a color space. RGB RGB (red, green, and blue) refers to a system for representing the colors to be used on any monitor screen, mobile phones, projectors, etc. Red, green, and blue can be combined in various proportions to (0-255, 0-255, 0-255) to look like any other visible color to the human eye. CMYK The CMYK color model is a subtractive process where the 4 inks subtract brightness from a white base, typically paper. CMYK refers to the four inks used in some color printing: Cyan, Magenta, Yellow, and Key (black). Delta E Delta E is the most common way to measure the difference between colors in the Lab color space. 1dE = the lowest possible noticeable difference (to the human eye) between two different colors. ICC Profile An ICC profile is a set of standardized data that describes the properties of a color space, the range of colors (gamut) that a monitor can display or a printer can output. Every device that is processing color should have its own ICC profile and when this is achieved the system is said to have an end-to-end color-managed workflow. With this kind of workflow, you can be sure that colors are not being lost or modified. Pantone Pantone is a standardized color matching system, utilizing the Pantone numbering system for identifying colors. By standardizing the colors, different manufacturers in different locations can all reference a Pantone numbered color, making sure colors match without direct contact with one another.
    [Show full text]