Presentation is loading. Please wait.

Presentation is loading. Please wait.

Introduction to the CSImageViewer. CSImageViewer classes 1.MainProgram 2.CSImageViewer 3.ImageData 4.GrayImageData 5.ColorImageData 6.pnmHelper 7.Timer.

Similar presentations


Presentation on theme: "Introduction to the CSImageViewer. CSImageViewer classes 1.MainProgram 2.CSImageViewer 3.ImageData 4.GrayImageData 5.ColorImageData 6.pnmHelper 7.Timer."— Presentation transcript:

1 Introduction to the CSImageViewer

2

3 CSImageViewer classes 1.MainProgram 2.CSImageViewer 3.ImageData 4.GrayImageData 5.ColorImageData 6.pnmHelper 7.Timer

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

5 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/CSI mageViewer/CSImageViewer/html/class_c_s_image_view er_1_1_c_s_image_viewer.html http://www.sju.edu/~ggrevera/cscCV/CSImageViewer/CSI mageViewer/CSImageViewer/html/class_c_s_image_view er_1_1_c_s_image_viewer.html

6 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/CSI mageViewer/CSImageViewer/html/class_c_s_image_view er_1_1_image_data.html http://www.sju.edu/~ggrevera/cscCV/CSImageViewer/CSI mageViewer/CSImageViewer/html/class_c_s_image_view er_1_1_image_data.html

7 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/CSImag eViewer/html/class_c_s_image_viewer_1_1_gray_image_data.html http://www.sju.edu/~ggrevera/cscCV/CSImageViewer/CSImageViewer/CSImag eViewer/html/class_c_s_image_viewer_1_1_gray_image_data.html

8 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 http://www.sju.edu/~ggrevera/cscCV/CSImageViewer/CSImageViewer/CSImageViewer/html/class_c_s_image_viewer_1_1_color_image_data.html

9 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/CSI mageViewer/html/class_c_s_image_viewer_1_1pnm_helper.html http://www.sju.edu/~ggrevera/cscCV/CSImageViewer/CSImageViewer/CSI mageViewer/html/class_c_s_image_viewer_1_1pnm_helper.html

10 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/CSI mageViewer/html/class_c_s_image_viewer_1_1_timer.html http://www.sju.edu/~ggrevera/cscCV/CSImageViewer/CSImageViewer/CSI mageViewer/html/class_c_s_image_viewer_1_1_timer.html

11 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.

12 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?

13 Summary of image data classes Homework: – See first CSImageViewer assignment.

14 Notes regarding VC# v10

15 Change settings from Basic to Expert – Tools --> Settings --> Expert Settings

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

17 Enable console to display output messages.


Download ppt "Introduction to the CSImageViewer. CSImageViewer classes 1.MainProgram 2.CSImageViewer 3.ImageData 4.GrayImageData 5.ColorImageData 6.pnmHelper 7.Timer."

Similar presentations


Ads by Google