00001 00002
00003 namespace eval camera {
00004
00005 proc maskImagePano {imageFile cameraModelFile imageMaskedFile} {
00006 00007
00008 set cameraModel [::camera::new_CameraParabolicBarreto]
00009 $cameraModel load $cameraModelFile
00010 set mask [::camera::new_PanoMask $cameraModel]
00011 set image [::image::Image_loadImage $imageFile]
00012 $mask apply $image
00013 $image saveImage $imageMaskedFile
00014 camera::delete_CameraParabolicBarreto $cameraModel
00015 camera::delete_PanoMask $mask
00016 image::delete_Image $image
00017 }00018
00019 }00020
00021 package provide camera 0.1