![]() ![]() ![]() A different way to decompose an image, so a different representation is by the lines and shapes within it. The image is decomposed in to small squares. This is also an example of decomposition with respect to data. Once the image is a list of numbers we can explore variations of the representation that allow us to compress the image – store it using fewer numbers. By splitting the image in to small squares and ignoring finer detail, we get an easy way to store, manipulate and transmit images. ![]() With bitmap images, part of that is in choosing the resolution. Choosing representations is a part of abstraction: choosing what matters to represent about data and what can be ignored. It is important to know about different representations already used. Each bit pattern represents a different number and so a different colour.Īn important part of computational thinking involves being able to choose an appropriate representation of data. With two colours you need a single bit for each pixel, with 4 colours you need 2 bits, with 8 colours you need 3 bits, and so on. The more colours, the more bits are needed to store each pixels colours. It also means you can see more fine detail – smaller things may disappear in a low resolution image.Įach image has to also come with (or have pre-agreed) a key indicating which number corresponds to which colour. The number of colours allowed is called the colour depth. The image is less pixelated – you see the squares less. Higher-resolution pictures have more detail and in particular lines are smoother. The more pixels making up the image the higher the resolution it has. Each number gives the colour of that square of the image. This way of representing an image is called a bitmap image or a raster image.Įach image is split in to a grid of squares. One way images are represented and so stored in a computer or digital camera is as a grid of numbers. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |