Академический Документы
Профессиональный Документы
Культура Документы
337
As well the exercises needed to be fun to do since students the image capture software/webcam application as the rest
learn only if they are motivated and ready to learn [7]. Us- of the activity is done using Scion Image only.
ing a set of discovery activities, the exercises would lead
students through the seemingly difficult concepts of gray 2.2 Grayscale and Pixel values
scaling, quantization, resolution, thresholding and convolu- The next step in the activity, is to open the saved image
tion. A final consideration in the design of these activities using Scion Image. This image is usually in colour and so
was that, given the appropriate software and hardware, they one of the first tasks is the conversion of the image from
could be run anywhere and at anytime. colour to grayscale.
For a number of years, these introductory digital image The students are then asked to explore the image by run-
processing exercises have been presented as the “Fun with ning the cursor over it, and to track the resultant values in
Faces” activity for secondary schools by the School of Com- the Scion Image window: see figure 1. (For illustrative pur-
puter Science and Mathematics at Victoria University. Stu- poses an image of a bunch keys has been used throughout
dent and school feedback has been very positive and en- this paper; however in a “Fun with Faces” activity this would
couraging. As a result, the “Fun with Faces” activity has be typically a student’s self image.) The reported values are
become the school’s flagship public relations exercise. The that of the pixel under the student’s cursor. For the pur-
next section of the paper describes “Fun with Faces” activity poses of this activity, a “pixel” is just one of the coloured
in some detail. Section 3 covers some pedagogical consid- dots of which a digital image is made—see [4] for a more
erations whilst section 4 provides some student feedback. precise definition. Students are able to discover that 0 cor-
Conclusions and further work are found in section 5. responds to black, 255 to white, and that the value of the
pixel is a function of its intensity. Scion Image allows two
scales of pixel values: 0 for black to 255 for white (this is a
2. THE ACTIVITY standard scale), and 0 for white to 255 for black. In figure 1,
“Fun With Faces” requires that each student have access the Value for the pixel at the cursor is given as 116.00(139).
to a computer with the freely available software “Scion Im- The first figure of 116 represents the intensity with the stan-
age” 1 having been installed. Scion Image, originally written dard scale; the second figure of 139 Scion Image’s alternative
at the National Institutes of Health, is a freely available scale. The facilitator then sets the challenge for students to
“powerful and complete image acquisition environment” [17]
that supports color and grayscale images. It can be used “to
capture, display, analyze, enhance, measure, annotate, and
output images”.
Additionally, students need access to a digital camera or
more conveniently a webcam, commonly available in infor-
mation technology classrooms, with which to photograph
themselves. The activity also assumes that students are fa-
miliar with the basic operations of a Microsoft Windows
based computer system: that they can open and save files,
navigate through different directories, and juggle two or
more open applications. Figure 1: Scion Image “Info” window
Upon commencement, each student is supplied with a
worksheet of instructions punctuated by boxes for students find the lowest value both X and Y. Quickly, students realise
to write down their comments and answer the questions that lower values for both X and Y are achieved by placing
posed throughout the activity. Students are encouraged to the mouse cursor in the top left corner of the screen, and
work in pairs or even small groups. the highest values are in the bottom right. A comparison
is usually made to the Cartesian co-ordinates X and Y with
2.1 Image capture which students usually have experience.
Despite the acceptance of digital cameras as commonplace
in everyday life, the activity’s first step of capturing a suit- 2.3 Quantization and resolution
able image always generates much excitement amongst the These are terms are not generally introduced to the stu-
students. This image needs to be suitable for further pro- dents; however they are important concepts in image pro-
cessing: it must be recognizable (not too blurred), and must cessing and display. Fundamentally, resolution refers to the
have a good contrast. This step particularly lends itself to amount of pixels used to display the image; the more pixels,
teamwork and joint efforts and the step is usually recorded the “smoother” the image will appear; the fewer pixels the
as a “team photo” of a “group hug”. One of the great ben- “blockier” the image will appear. This blockiness is some-
efits of using a digital camera is that there is no wastage: times called “pixelization”. Quantization refers to the num-
there is no film to be consumed or paid for, and students can ber of available gray values. Again, the more values, the
snap at each other for as long as they like, or for as long as better the image will appear; the fewer values will result in
the activity facilitator will let them. Finally, the image they a less natural looking image.
decide to use must then be saved. Scion Image only allows Students are then shown how to experiment setting var-
images of type BMP (Microsoft Bitmap) or TIFF (Tagged ious gray levels used to display an image, creating images
Image File Format); see [11] for a good account of each. Af- similar to those shown on the left in figure 2. By using less
ter saving the image, students may either quit or minimize and less grayscales for their image display, students see the
effects on the appearance of the image, and in particular the
1
This is available from http://www.scioncorp.com appearance of “false contours” in the output.
338
Quantization: 8 and 4 levels Changing resolution
Figure 3: Thresholding
339
Edge detection Edge enhancement Edges using Sobel filters
thickens objects in an image, and erosion, which shrinks or classes [2]. In these instances, the inclusion of digital image
thins them. The image on the far left in figure 6 shows a processing was valued because it engaged students in active
binary object formed in Scion Image by taking a grayscale experimentation and concrete real world examples. Such
image and thresholding the result. inquiry-based activities encouraged students to ask “what
The results of dilation and erosion are shown in figure 6. happens when I try this?”. As Neo and Neo [12] point out
Without going into any of the theory, students can see active and contextual learning is the hallmark characteris-
that dilation really does thicken objects and erosion thins tic of the constructivist model in education. In this model,
them: the objects from the left image in figure 6 have been students learn by looking for patterns and significance in
thickened by dilation and thinned by erosion. their experiences and try to construct their own knowledge
These two images can now be subtracted to produce an by adding to what they already know [16].
edge map of the original image, as shown on the far right in Much educational research supports the notion that stu-
figure 6. dents do learn according to the constructivist model [6] and
the use of inquiry based activities to encourage active learn-
2.6 Noise ing as been advocated by many authors [6, 10]. Addition-
Noise, errors in an image, can be implemented by using ally, computer-based technologies have been seen by oth-
the spray can tool (this is available on a floating menu), ers [1, 15] as an important vehicle to achieve active engage-
over a grayscale image. The removal of this “salt & pepper” ment amongst students whilst encouraging group participa-
noise can be done with a median filter. This is a filter whose tion and exploration of real world scenarios. When image
output is the median of the pixels in the image neighbour- processing activities were introduced in a Cincinnati Pub-
hood. The affect is dramatic and figure 7 shows an example lic School at 7th grade, Lewis reports [8] that the students
of noise and its removal by this means. found the exercise fun and stimulating and also suggests that
the activity fostered a positive learning environment for a
broad variety of learners, including gifted students, minori-
ties and females. Similar experiences were also reported by
Raphael and Greenberg [14]. These views are supportive of
those advocating inquiry-based activities for improved sci-
ence and mathematics learning throughout the junior high
school curriculum [6] and also of our belief that an inquiry
based image processing exercise like “Fun with Faces” is both
appropriate and desirable for students at this level.
4. STUDENT FEEDBACK
Figure 7: Noise and its removal
We have deliberately avoided any pre-testing and post-
testing of participants, as we wanted the activity to be spon-
Students see that the median filter does indeed do a very
taneous. However, after each “Fun with Faces” session stu-
good job of removing the noise. Students can experiment
dents are invited to comment on this activity by filling out
using a larger neighbourhood (5×5 for example), or applying
an evaluation form. Without exception, all students agreed
the median filter more than once, to see how this affects
that: the activity was worthwhile and enjoyable, the in-
the noise removal. They can also experiment with adding
structions were clear, there were plenty of opportunities to
different amounts of noise: giving their image “a really good
ask questions. When asked: “What did you enjoy about to-
spray”, to investigate how the outcome of the median filter
day and why?”, many students commented on this activity,
is affected by the amount of noise.
which was only one of several offered during the day, with
enthusiasm:
3. PEDAGOGICAL CONSIDERATIONS “The computer & image thingy was fabulous. I loved it.”
While digital image processing is typically a graduate study, “Web camera work!”
the literature documents the use of digital image processing “The session with the computers.”
as a valuable learning aide in diverse cases such as in med- “Last session—computers.”
ical image processing training [5] and for the teaching of “I enjoyed the computer science.”
two dimensional arrays in undergraduate computer science “The computer stuff.”
340
A binary image Dilation Erosion Edges
Figure 6: Morphology
“Fun with photos [sic]!!” [6] D. Jarrett. Inquiry strategies for science and
The enthusiasm of the students in the laboratory was also mathematics learning. it’s just good teaching.
indicative of the fun they were having; this seems to be a Northwest Regional Educational Laboratory
very successful activity, illustrating both computer science (NWREL), 1997.
and mathematics in a positive manner. [7] M. Knowles, E. Holton, and R. Swanson. The Adult
Learner: The Definitive Classic in Adult Education
5. CONCLUSIONS and Human Resource Development.
We have shown that although image processing—as an Butterworth-Heinemann, Woburn MA, 2001.
area of academic study —is usually reserved for the upper [8] K. O. Lewis. Image processing for teaching (IPT) in
undergraduate years, it is perfectly reasonable to introduce science classrooms. Meridian, A Middle School
it in a simplified form much earlier. In the course of two Computer Technologies Journal, 5(2).
hours, students experiment with quantization and spatial http://www.ncsu.edu/meridian/sum2002/.
resolution, filtering with applications, noise and its removal, [9] A. McAndrew. Teaching image processing using
and binary morphology. And they leave with a great sense minimal mathematics. In T. Greening and R. Lister,
of mastery and satisfaction. editors, Fifth Australasian Computing Education
In comparison with previous studies, our activity is de- Conference (ACE2003), 2003.
signed as a single standalone session aimed at encouraging [10] I. Miliszewska and A. Venables. Effective delivery of
students to broaden their views of the content and practice computer science - a case study. In Proc. ICCE ’99
of computer science, long before they select undergraduate International Conference on Computers in Education,
courses. page 3, 1999.
There is probably no reason why this activity—perhaps [11] J. D. Murray and W. Ryper. Encyclopedia of Graphics
in a further simplified form—could not be offered to high- File Formats. O’Reilly and Associates, 1996.
achieving upper primary level students. However, so far we [12] K. T. K. Neo and M. Neo. A constructivist learning
have restricted our attentions to students at secondary level. experience: Reconstructing a web site using web based
multimedia authoring tools. Australian Journal of
6. ACKNOWLEDGEMENTS Educational Technology, 17(3):330–350, 2001.
The authors gratefully acknowledge the detailed comments [13] M. Petrou and P. Bosdogianni. Image Processing: The
of the referees, who made many valuable suggestions for im- Fundamentals. John Wiley & Sons, 1999.
proving the original draft of this paper. [14] J. Raphael and R. Greenberg Image Processing: A
State-of-the-Art way to learn Science. Educational
7. REFERENCES Leadership, 34–37, 1995
[1] M. Ally. Foundations of educational theory for online [15] J. M. Roschelle, R. D. Pea, C. M. Hoadley, D. N.
learning. Theory and Practice of Online Learning, Gordin, and B. M. Means. Changing how and what
2004. children learn in school with computer-based
[2] J. Chastine and J. Preston. Teaching 2d arrays using technologies. The Future of Children. CHILDREN
real-time video filters. AND COMPUTER TECHNOLOGY, 10(2):76–101,
http://cims.clayton.edu/jchastine/papers/ 2000.
Teaching2DArraysUsingRealTimeF%ilters.pdf. [16] G. Scheuerman. From behaviorist to constructivist
[3] E. R. Dougherty. Editorial. Journal of Electronic teaching. Social Education, 62(1), 1998.
Imaging, 5(1), 1196. [17] Scion Corporation. Scion image beta 4.02 http://
[4] R. C. Gonzalez and R. E. Woods. Digital Image www.scioncorp.com/frames/fr_scion_products.htm.
Processing. Prentice-Hall, 2002. [18] S. Tanimoto. Mathematics experiences through image
[5] A. Horsch, C. Natscher, M. Tobamn, T. Balbach, processing (METIP). http:
M. Danninger, S. Schulz, and D. Stapf. Interactive //cs.washington.edu/research/metip/metip.html,
image processing as learning by doing component of a 2004.
WBT application. In G. Surján, R. Engelbrecht, and [19] Victorian Curriculum and Assessment Authority.
P. McNair, editors, Health Data in the Information Information technology. http://www.vcaa.vic.edu.
Society. Proceedings of MIE2002, pages 3–7. au/vce/studies/infotech/infotechindex.html.
341