6.5 Summary


In this chapter, we finalized the design and implementation of the image class, the global image functions, and the third-party interfaces (also called delegates). We showed many examples where methods could also be implemented to leverage generic STL algorithms, in addition to using those supplied with the image framework. We also made extensive use of templates to define the constructs needed by our final image class, including clamping data types to prevent overflows. This required an exception-safe locking mechanism, which we fully discussed.

When we described global image processing functions, we provided a brief overview of the algorithms, and then showed concrete implementations to support the algorithms. We also provided visual feedback of the original image and the subsequently filtered image, letting you decide the usefulness of any particular operation.

Finally, we discussed the appropriate design for integrating third-party software libraries with the image framework. We showed a file delegate for supporting other file types, such as JPEG or TIFF, and we showed an image delegate for supporting third-party image processing libraries (Intel IPP, in our example). In addition to providing coding examples, this section compared alternative techniques of using third-party software packages, and contrasted their effects on implementation and future expandability.

In Chapter 7, we proceed to create a unit test framework to ensure the accuracy of the global imaging functions you are now able to add. We also discuss specific techniques, showing coding examples of each, for improving the performance of your code.



Applied C++
Applied C++: Practical Techniques for Building Better Software
ISBN: 0321108949
EAN: 2147483647
Year: 2003
Pages: 59

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net