Milena (Olena)
User documentation 2.0a Id
|
00001 #include <mln/core/image/image2d.hh> 00002 #include <mln/io/pbm/save.hh> 00003 #include <mln/make/image.hh> 00004 00005 #include "doc/tools/data.hh" 00006 00007 int main() 00008 { 00009 using namespace mln; 00010 00011 bool vals[5][5] = { 00012 {1, 0, 1, 0, 0}, 00013 {0, 1, 0, 1, 0}, 00014 {1, 0, 1, 0, 0}, 00015 {0, 1, 0, 1, 0}, 00016 {0, 1, 0, 1, 0} 00017 }; 00018 image2d<bool> ima = make::image(vals); 00019 00020 /* FIXME: MLN_DOC_DIR looks probably confusing in the 00021 documentation... But we have to handle parallel builds. Maybe a 00022 solution could be to prepare the the build dir for data? */ 00023 // \{ 00024 io::pbm::save(ima, MLN_DOC_DIR "/figures/ima_save.pbm"); 00025 // \} 00026 }