The Problem: You are coding a graphics filter that process each of an image through a filter. Each pixel is defined a triplet of real numbers (R,G,B) each of which is between 0 and 255. The filtering algorithms need to work on real numbers in order to do their job. But examining the program you discover that they only need two digits of accuracy. Any additional digits is just overkill.The Problem: You are coding a graphics filter that process each of an image through a filter. Each pixel is defined a triplet of real numbers (R,G,B) each of which is between 0 and 255. The filtering algorithms need to work on real numbers in order to do their job. But examining the program you discover that they only need two digits of accuracy. Any additional digits is just overkill.
The Problem: You are coding a graphics filter that process each of an
image through a filter. Each pixel is defined a triplet of real numbers (R,G,B)
each of which is between 0 and 255.
The filtering
job. But examining the
accuracy. Any additional digits is just overkill.The Problem: You are coding a graphics filter that process each of an
image through a filter. Each pixel is defined a triplet of real numbers (R,G,B)
each of which is between 0 and 255.
The filtering algorithms need to work on real numbers in order to do their
job. But examining the program you discover that they only need two digits of
accuracy. Any additional digits is just overkill.
Step by step
Solved in 5 steps with 2 images