> (define rad (read-image "radiation.pgm"))
> rad
#
>
> (load "histogram.scm")
> (plot-histogram rad)
>
> (plot-histograms rad (+ rad 64))
>
> (plot-histograms rad (/ rad 2))
>
> (- 255 rad)
#
>
> (plot-histograms rad (- 255 rad))
>
> (image-map (lambda (x) (if (> x 128) x 0)) rad)
#
>
> (plot-histograms rad (image-map (lambda (x) (if (> x 128) x 0)) rad))
>
> (define cactus (read-color-image "cactus.ppm"))
> cactus
#
>
> (plot-color-histogram cactus)
>