JPEG images can be manipulated by setting options and using special functions from the libjpeg library. You can also manipulate raw image data directly by modifying the buffer in memory.
- [Instructor] In this movie, … I demonstrate three JPEG manipulations … made possible by using the libjpeg library. … First, this code reads in a color JPEG image … and outputs that same image, but in grayscale. … Effectively, the code removes the color elements … from the image. … The key option is set at line 32, … which directs libjpeg to decompress … the input file as grayscale. … This option is also set at line 84 … where the output file is compressed. … I've already compiled and linked the program file. … So it will run, … and it reports that the grayscale image was created. … I'll go to a folder window where you can see … the original fie preview shown here. … And here's the duplicate, but in grayscale. … This exercise file takes the input file … and shrinks it to 1/4 size. … The resizing options are set at lines 32 and 33 … as the numerator and denominator … of the decompressed image's size. … Now, these are the only options that need to be set. … The output file is compressed using the raw data …
- Finding, installing, and linking libraries
- Accessing and generating XML data
- Working with JSON
- Working with the libcurl library
- Text programming
- Reading, writing, and manipulating JPEG images
- Working with PNG images
Skill Level Advanced
1. Setup and Configuration
2. Data Structures
3. Web Access
4. Text Programming
5. Computer Graphics
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.