Monday, December 12, 2016

AP CP- Unit 2:Lesson 3 Encoding B&W Images

Binary is not just a system with a bunch of 0's and 1's. Binary can be used to encode images. In order to understand the meaning translating a images into a bit-level encoding. In this lesson we began by learning that digital images are broken into small squares on a monitor called pixels. We first started off by encoding black and white images. When encoding black and white images, we use binary coding in which 0's= off (black) and 1's=(white). In black and white images, each pixel can be turned on (made white) or turned off (made black). not only do we represent images by a single bit but in order to encode an image we must also contain other data such as the width and height of an image. To represent the width and height of an image we use binary as well, the height and weight are represented in the first two lines of code. Encoding larger images can be harder and require much more work and patience. When creating an image, we found out that we can use this image as a falcon. A falcon is the image that appears next to the websites URL.




No comments:

Post a Comment