Creating your own image data files. Simple ASCII file output in Java import java.io.FileOutputStream; import java.io.PrintWriter; … PrintWriter out =

Slides:



Advertisements
Similar presentations
This presentation describes how to save files so that they cannot be changed by any user. This technique is a simple way of giving access to documents,
Advertisements

Rachelle Howell University of Texas at Austin. Logging in Navigating PEN Downloading Files Creating Trials/Experiments/Repetitions Uploading Files Editing.
ICE-TT A UDIOBOOKS & PORTABLE LISTENING DEVICES Pierce County Library System.
Adobe Flash CS4 – Illustrated Unit E: Optimizing and Publishing a Movie.
Lesson One: The Beginning Chapter 2: Processing Learning Processing Daniel Shiffman Presentation by Donald W. Smith Graphics from built-in help reference.
CSE 803 Using images in C++ Computing with images Applications & Methods 2D arrays in C++ Programming project 4.
E.1 Eclipse. e.2 Installing Eclipse Download the eclipse.installation.exe from the course web site to your computer and execute it. Keep the destination.
Eleven colors and rasters. Color objects Meta represents colors with color objects You can create a color by saying: [color r g b] r: amount of red (0-255)
Images By Tara Frieszell By Tara Frieszell. Adding images to your website will make it more interesting and add to the design. However, some viewers aren’t.
Introduction to Raster Graphics Resize an image until it is pixelated.
APP PROJECT UPLOAD INSTRUCTIONS **Before we begin, please open your student drive and create a folder named APP CONTENTS. ** You may not move forward to.
Process to Install Games and Applications Log On to lgmobiles Site Click on Games & Applications Select The Model Click on Game or Application of customer’s.
Android Apps: Look and Feel Module 6, Intro to I.T., Fall 2011 Sam Scott.
Matlab tutorial course Exercises 2:. Exercises Copy the script ‘face_points.m’ from my webpage into your ‘scripts’ folder Create a new folder in your.
All About Me An Introduction To Opening And Saving Student Work.
CS Tutorial 1 Getting Started with Visual Studio 2012 (Visual Studio 2010 are no longer available on MSDNAA, please choose Visual Studio 2012 which.
McGraw-Hill Connect® First Day of Class
Drexel University Software Engineering Research Group 1 Eclipse for SE101.
© 2016 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Android Boot Camp.
Binary Numbers. Remember we count using the decimal system or Base 10. That means there are 10 symbols: 0,1,2,3,4,5,6,7,8 and 9 Computers use the Binary.
Chapter 8 Browsing and Searching the Web. Browsing and Searching the Web FAQs: – What’s a Web page? – What’s a URL? – How does a browser work? – How do.
Aim: What is ImageJ and Why do we use it? Day 1. Brief Background Released in 1997 by Wayne Rasband Developed at the National Institutes of Health Runs.
Troubleshooting. What is an ‘Application Error’ and how do I fix it?
February 2014 LCCU Meeting We’ll answers members’ questions: –How can you crop or resize images and make them less fuzzy, for use in Word or a desktop.
Your Smart Board is on most of the day….. Why not use the space for learning?
How to Download Sermons from the LBC Sermon Website To Download or to listen then please follow the instructions in the boxes (similar to this one) that.
Creating your own image data files. Simple file output in C# using System.IO; … StreamWriter file = new StreamWriter( "c:\\out.txt" ); file.WriteLine(
Creating Greenfoot Backgrounds. GIMP: GIMP: is a software graphics editor is a software graphics editor is similar to Adobe Photoshop – but FREE. is similar.
Graphics and Images Graphics and images are both non-textual information, that can be displayed and printed. These images may appear on screen as well.
CS378 - Mobile Computing Responsiveness. An App Idea From Nifty Assignments Draw a picture use randomness Pick an equation at random Operators in the.
Using Google Drive on your computer A Tutorial. Using Google Drive on your Computer After watching this tutorial, I hope that you will be able to: Log.
Intro to CS ACO 101 Lab Rat. Academic Integrity What does that mean in programming? Log into Blackboard and take the test titled “Applied Computing Course.
Processing Workshop. What is processing? “Processing is an open source programming language and environment for people who want to program images, animation,
The Homepage My Campaign is where you can track your contacts information.
Project Two Adding Web Pages, Links, and Images Define and set a home page Add pages to a Web site Describe Dreamweaver's image accessibility features.
CS Class 03 Topics  Sequence statements Input Output Assignment  Expressions Read pages Read pages 40 – 49 for next time.
Pictures, Pictures, Pictures!. Load your pictures:  Open your and save each picture to your computer. I suggest saving to the My Documents or My.
1 Getting Started with C++ Part 2 Linux. 2 Getting Started on Linux Now we will look at Linux. See how to copy files between Windows and Linux Compile.
First Project: Dance Dance Sprite  Write a dance with your sprite (You pick or create the sprite)  Incorporate as many of the Motion Commands as you.
1 2/22/05CS120 The Information Era Chapter 4 Basic Web Page Construction TOPICS: Images and placing pages on the server.
1 Project 2: Using Variables and Expressions. 222 Project 2 Overview For this project you will work with three programs Circle Paint Ideal_Weight What.
Open the index.html Open this PowerPoint from the S Drive IDT folder Chapman Images.ppt.
©College of Computer and Information Science, Northeastern UniversityFebruary 21, CS U540 Computer Graphics Prof. Harriet Fell Spring 2009 Lecture.
Second Model: “Model2”. What You Will Learn  How to build a simple layout  How to connect ports for routing flowitems  How to detail and enter data.
Teacher: Kenji Tachibana Digital Photography I. Scale (resize) to 640 x slides Copyright © Kenji Tachibana.
CompSci 4 Java 4 Apr 14, 2009 Prof. Susan Rodger.
How to Sync Android Phone to Computer (PC/Mac)? Are you a person that always has your Android phone in your hands? Nowadays, a cell phone is not just for.
LOGO iPhone to Galaxy Note Transfer Transfer iPhone Data to Galaxy Note 3/Note 4/Note 5/Note Edge.
IPhone to Galaxy Transfer
Representation of image data
Spinning Circle.
Beginning of Class (lined paper)
Objective: To learn about defragging
Manual update through the RetailMedia.patch
How to your WhiteBox Bridge design
How to Embed Videos into Powerpoint
IPod A combination portable digital media player and hard drive from Apple Computer… searchmobilecomputing.com.
The session website can be reached at wmo
CSC1401 Viewing a picture as a 2D image - 2
To insert this slide into your presentation
To insert this slide into your presentation
To insert this slide into your presentation
The session website can be reached at wmo
Grading Assignments in Google Classroom
To insert this slide into your presentation
To insert this slide into your presentation
Agenda for Unit 5: Control Structures
To insert this slide into your presentation
To insert this slide into your presentation
To insert this slide into your presentation
Presentation transcript:

Creating your own image data files

Simple ASCII file output in Java import java.io.FileOutputStream; import java.io.PrintWriter; … PrintWriter out = null; try { out = new PrintWriter( new FileOutputStream("fred.txt") ); } catch (Exception e) { System.err.println( "error: " + e ); return; } out.println( "hello" ); … out.close();

P2 = ASCII grey PGM Each pixel has one integer (grey) value. P2 w h maxval v 1 v 2 v 3 … v w*h

P3 = ASCII color PPM Each pixel’s color is represented as three consecutive values,. P3 w h maxval v 1 r v 1 g v 1 b v 2 r v 2 g v 2 b v w*h r v w*h g v w*h b

Write a simple program that creates an image of the sin function. – file format:pgm (P2 / grey) – file name:out.pgm – Don’t use code other than your own. Exercise

Write a simple program that creates an image of the sin function. – sin function: width/domain/x: [0..2Pi] y: real numbers [ ] – image: width: 500 pixels ({0,..,499}) height: 250 pixels (repeat values from sin 250 times) pixel values: integers {0,…,255} Exercise

Part A. – Download GIMP (gimp.org), and load your PGM file into GIMP. – your code (including doxygen/javadoc comments) that produced the image data file to me. – The subject must be: CV sin A assignment. Exercise (cont’d.) Same values across each line repeated over and over and over for every line.

Transfer files to and from the Android and PCs When you connect the Android to a PC, it will mount the Android file system on the PC. – From the PC, click on Computer. Then click on the Android (mounted as Portable Media Player). Then click on Tablet. Then click on Download. Copy images to and from the Android’s Download folder. On the Android, Apps --> My Files. Then navigate to /storage/sdcard0/Download. – These are the same Download folder.

Part B. 1.Download and build Albie. 2.Copy your pgm file from PC to Albie Download folder. 3.Run Albie. (Note: Loading this ASCII file on a Samsung Galaxy Tab 3 takes 30 seconds.) 4.Use Albie’s Save option, and the resulting JPEG to me. – The subject must be: CV sin B assignment. Exercise (cont’d.) Same values across each line repeated over and over and over for every line.