Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh University.

Slides:



Advertisements
Similar presentations
+ How to apply filters to a photo in Adobe Photoshop CS3 Neeta Balram.
Advertisements

Introducing Macromedia Flash MX 2004 – Lesson 11 Introducing Macromedia Flash MX 2004 Lesson 1.
Iframes & Images Using HTML.
Medical Imaging System Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh University.
Medical Imaging System Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh University.
Unit 13 Analysis of Clocked Sequential Circuits Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information.
2004/05/03 Clustering 1 Clustering (Part One) Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information.
Image File Format How to read data ? HEADER IFD DATA.
From Image Capture to Digital Output. In looking at this we shall consider the following… Quantisation. Quantisation Error. Interpolation. Viewing images.
OpenCV Stacy O’Malley CS-590 Summer, What is OpenCV? Open source library of functions relating to computer vision. Cross-platform (Linux, OS X,
ISYS 3074 Graphics File Formats File formats have developed with applications. At least 50 currently in use. Examples include: GIF, JPEG, TIFF, BMP, DIB,
Graphics for the Web Graphic formats and other considerations.
Unit 11 Latches and Flip-Flops Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh.
Introduction to Raster Graphics Resize an image until it is pixelated.
Unit 12 Registers and Counters Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh.
How Images are Represented Bitmap images (Dots used to draw the image) Monochrome images 8 bit grey scale images 24 bit colour Colour lookup tables Vector.
Unit 12 Registers and Counters Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh.
Introduction to Computers Section 11A. home Types of Graphics File Bitmap Vector.
Unit 12 Registers and Counters Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh.
Unit 11 Latches and Flip-Flops Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh.
Manipulating Images Image A visual representation of something that is seen in real life. It can be two-dimensional or three-dimensional A visual representation.
Working with lesson 21 Images. This lesson includes the following sections: Computer Platforms Used for Graphics Types of Graphics Files Getting Images.
2004/03/22 Color Models 1 Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh University.
Nic Shulver, Other Useful PHP Bits More Useful PHP Read the contents list in the PHP online manual You will find loads of interesting.
Image Buffer Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh University.
CHAPTER 4 Images XNA Game Studio 4.0. Objectives Find out how the Content Manager lets you add pictures to Microsoft XNA games. Discover how pictures.
TYPES OF GRAPHICS TECHNOLOGICAL DESIGN. GRAPHIC DESIGN DEFINITION Visual problem solving that utilizes shapes, images, text, color, etc. to communicate.
計算機視覺 (Computer Vision) 課程簡介 Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh.
+ 5 Things you need to know about images* *Images for the web.
Unit 13 Analysis of Clocked Sequential Circuits Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information.
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
Software Engineering Chapter 10 Formal Specification Ku-Yaw Chang Assistant Professor Department of Computer Science and Information.
Raster Graphics 2.01 Investigate graphic image design.
Game Programming Step-11 Learn How to Change prepare matrix texture into the game.
Digital Images are represented by manipulating this…
VTE File Creation By: Ricardo Veguilla Vazjier Rosario WALSAIP July 2008.
Digital Image Editing Presented by John Hohn. File Formats JPEG – Joint Photographic Experts Group PNP – Portable Network Graphics GIF – Graphic Interchange.
Menu Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh University.
Finding and Using Digital Images Alastair Dunning, AHDS Executive Office King’s College London, Bradford 12 th December 2005.
MULTIMEDIA Multimedia is the field concerned with the computer- controlled integration of text, graphics, drawings, still and moving images (Video), animation,
Period 3 – Angelique Zingg, Savanah Lavorico, & Ashley Vallejo.
Digital Graphics for Computer Games Pixels Types of Digital Graphics (Raster and Vector) Compression.
1 2/22/05CS120 The Information Era Chapter 4 Basic Web Page Construction TOPICS: Images and placing pages on the server.
Introduction to the Computer Graphics Anton V. Kudinov, Assistant professor of Computer Engineering Department.
Slide 1 Graphics (Characteristics 1) Images have various characteristics that affect performance Size (number of pixels) – Large images can be several.
Chapter Ten The Bridge Pattern Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh.
Texture Mapping What is texture mapping? - a method for adding detail, surface texture (a bitmap or raster image), or color to a computer-generated graphic.
Information Systems Design and Development Media Types Computing Science.
Hank Childs, University of Oregon April “29 th”, 2015 CIS 330: _ _ _ _ ______ _ _____ / / / /___ (_) __ ____ _____ ____/ / / ____/ _/_/ ____/__ __ / /
Yingfang Zhang Department of Computer Science UCCS
Common Bitmap Image File Types
Representation of image data
Exploring Computer Science - Lesson 3-4
Types of Graphics Technological Design.
Introduction to Graphics
Exploring Computer Science - Lesson 3-4
Lesson 21 Working with Images.
Exploring Computer Science - Lesson 3-4
Outline Image formats and basic operations Image representation
CS320n –Visual Programming
GIMP BY MR. YOUSUF VALI 11/20/201811/20/2018.
Graphics (Characteristics 1)
Representing Images 2.6 – Data Representation.
Working with images EIT, Author Gay Robertson, 2018.
GIMP BY MR. YOUSUF VALI 12/31/201812/31/2018.
Fourth Year – Software Engineering
COMS 161 Introduction to Computing
Hank Childs, University of Oregon
Lesson 21 Working with Images.
Comp 20 - Training & Instructional Design
Presentation transcript:

Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh University

22004/03/29FreeImage Outline Introduction Add to Your Project Load a JPEG file Image Preparation

32004/03/29FreeImage Introduction FreeImage an Open Source library project an Open Source library project support popular graphics image formats support popular graphics image formats PNG, BMP, JPEG, TIFF and others two versions are available two versions are available a binary distribution a source distribution Website

42004/03/29FreeImage Introduction Features Ease of use. Ease of use. The library has been designed to be extremely simple in use. Our motto is: make difficult things simple instead of simple things difficult. Supports many formats Supports many formats BMP, JPEG, TIFF, PNG Etc… Etc…

52004/03/29FreeImage Introduction Latest version May 7th 2005 : FreeImage released May 7th 2005 : FreeImage released

62004/03/29FreeImage Adding to Your Project FreeImage FreeImage.h FreeImage.h Add to your project FreeImage.lib FreeImage.lib Add to your project FreeImage.dll FreeImage.dll Under the same directory with your executable file Under the system directory C:\Windows\System32 C:\Windows\System32

72004/03/29FreeImage Load a JPEG file C***Doc #include “FreeImage.h” #include “FreeImage.h” Override BOOL C***Doc::OnOpenDocument (LPCTSTR lpszPathName) Override BOOL C***Doc::OnOpenDocument (LPCTSTR lpszPathName)

82004/03/29FreeImage Load a JPEG file Load and UnLoad FIBITMAP * dib = FreeImage_Load(FIF_JPEG, lpszPathName, JPEG_ACCURATE); FIBITMAP * dib = FreeImage_Load(FIF_JPEG, lpszPathName, JPEG_ACCURATE); FreeImage_Unload(dib); FreeImage_Unload(dib);

92004/03/29FreeImage Load a JPEG file Get Image Information Width WidthFreeImage_GetWidth(dib); Height HeightFreeImage_GetHeight(dib); Size of one pixel in bits Size of one pixel in bitsFreeImage_GetBPP(dib);

102004/03/29FreeImage Load a JPEG file Access pixels unsigned char * pScanLine = FreeImage_GetScanLine(dib, nLine); unsigned char * pScanLine = FreeImage_GetScanLine(dib, nLine);

112004/03/29FreeImage Load a JPEG file for (int iLoop=0; iLoop<m_nHeight; iLoop++){ unsigned char * pScanLine = FreeImage_GetScanLine(dib, (m_nHeight-1) - iLoop); for (int jLoop=0; jLoop<m_nWidth; jLoop++){ *(m_pBImage+iLoop*m_nWidth+jLoop) = *(pScanLine+jLoop*3); *(m_pGImage+iLoop*m_nWidth+jLoop) = *(pScanLine+jLoop*3+1); *(m_pRImage+iLoop*m_nWidth+jLoop) = *(pScanLine+jLoop*3+2); }}

122004/03/29FreeImage Preparation Image Format: JPG Format: JPG Size: 600*300 Size: 600*300 Content: Plate Content: Plate