Use `collection-file-path' to load example image

This commit is contained in:
Neil Toronto 2012-06-05 11:08:59 -06:00
parent e44c0809e8
commit c089b2fa50

View File

@ -1157,7 +1157,9 @@ It also provides a physically grounded generalization of the flomap transforms r
@interaction-eval[#:eval flomap-eval
(begin (require racket/draw)
(define state-of-the-union-fm
(bitmap->flomap (read-bitmap (build-path (current-directory) "scribblings" "images" "state-of-the-union.jpg") 'jpeg))))]
(bitmap->flomap (read-bitmap (collection-file-path "state-of-the-union.jpg"
(build-path "images" "scribblings" "images"))
'jpeg))))]
@defproc[(flomap-projection-transform [to-proj Projection] [from-proj Projection] [crop? Boolean]) Flomap-Transform]{
Returns a flomap transform that corrects for or simulates lens distortion.