1 / 17

Introduction to the CSImageViewer

Introduction to the CSImageViewer. CSImageViewer classes. MainProgram CSImageViewer ImageData GrayImageData ColorImageData pnmHelper Timer. CSImageViewer classes. MainProgram class file: MainProgram.cs this class contains the Main() method do not use directly. CSImageViewer classes.

Télécharger la présentation

Introduction to the CSImageViewer

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Introduction to the CSImageViewer

  2. CSImageViewer classes • MainProgram • CSImageViewer • ImageData • GrayImageData • ColorImageData • pnmHelper • Timer

  3. CSImageViewer classes • MainProgram class • file: MainProgram.cs • this class contains the Main() method • do not use directly

  4. CSImageViewer classes • CSImageViewer class • file: CSImageViewer.cs • instantiate this class to display an image • refer to doxygen docs: http://www.sju.edu/~ggrevera/cscCV/CSImageViewer/CSImageViewer/CSImageViewer/html/class_c_s_image_viewer_1_1_c_s_image_viewer.html

  5. CSImageViewer classes • ImageData class • file: ImageData.cs • class containing the actual pixel data values • note that this class is abstract • refer to doxygen docs: http://www.sju.edu/~ggrevera/cscCV/CSImageViewer/CSImageViewer/CSImageViewer/html/class_c_s_image_viewer_1_1_image_data.html

  6. CSImageViewer classes • GrayImageData class • file: GrayImageData.cs • class containing the actual pixel data for a gray image (i.e., only one value per pixel) • do not use directly • refer to doxygen docs: http://www.sju.edu/~ggrevera/cscCV/CSImageViewer/CSImageViewer/CSImageViewer/html/class_c_s_image_viewer_1_1_gray_image_data.html

  7. CSImageViewer classes • ColorImageData class • file: ColorImageData.cs • class containing the actual pixel data for a color image (i.e., 3 values per pixel - red, green, and blue (rgb)) • do not use directly • refer to doxygen docs: http://www.sju.edu/~ggrevera/cscCV/CSImageViewer/CSImageViewer/CSImageViewer/html/class_c_s_image_viewer_1_1_color_image_data.html

  8. CSImageViewer classes • pnmHelper class • file: pnmHelper.cs • this class contains methods that read and write PNM/PGM/PPM images (color rgb and grey images) • do not use directly • refer to doxygen docs: http://www.sju.edu/~ggrevera/cscCV/CSImageViewer/CSImageViewer/CSImageViewer/html/class_c_s_image_viewer_1_1pnm_helper.html

  9. CSImageViewer classes • Timer class • file: Timer.cs • class containing timer (elapsed time) implementation • You may use this class to time your implementation of various algorithms. • refer to doxygen docs: http://www.sju.edu/~ggrevera/cscCV/CSImageViewer/CSImageViewer/CSImageViewer/html/class_c_s_image_viewer_1_1_timer.html

  10. CSImageViewer classes • Timer class • Timer () • Timer class ctor. • Timer is started immediately. • void reset () • Reset/restart the time. • The timer continues to run. • double getElapsedTime () • Get the elapsed time (in seconds). • Note that this function does not start/stop/reset the timer. It continues to run. • void report () • Report the elapsed time so far (using a modal dialog box). • While this dialog is up, the timer is paused and resumes when the dialog is dismissed.

  11. Summary of image data classes • ImageData (abstract) • GrayImageData (don’t use directly) • ColorImageData (don’t use directly) • pnmHelper (don’t use directly) • So how do we use them to actually read in image data?

  12. Summary of image data classes • Homework: • See first CSImageViewer assignment.

  13. Notes regarding VC# v10

  14. Change settings from Basic to Expert • Tools --> Settings --> Expert Settings

  15. Use Configuration Manager (Build --> Configuration Manager) to build either Release or Debug version.

  16. Enable console to display output messages.

More Related