Changes

Jump to: navigation, search

DPS921/ASCII

892 bytes added, 17:26, 3 December 2018
Algorithm and Pseudocode
[[File:zoomed.png|400px]]
[[File: chunk.png|150px|left]] Then we think of processing a chunk itself. We need to average the value of all pixels withins within it to a single value.This requires us to iterate over each pixel in a chunk. Added complexity in indexing the pixels arises from the fact that lines of pixels are not contiguous in memory. This iteration forms the 2 inner-most loops in our algorithm. [[File: chunk.png|150px]] Once we have a single value we need to map its luminosity to a character we are going to replace it width. The character templates are small images we have in our project folder (Pound.png, AT.png W.png etc.) These are small images 7 by 11 pixels only, and we read all images into 2D array. The dimensions of our character template determines the size of the chunk. We have experimented with different size templates and found that smaller font to be preferable. Once we know which character we want to print we will copy, pixel by pixel from our template into output array of unassigned chars of the same length as our original frame.  [[File:charTmpl.png|150px]]
==vTune Amplifier with OpenMP (Alex)==
120
edits

Navigation menu