Converts a YAML file generated by OpenCV's FileStorage interface into a format that can be imported by ImageJ.
OpenCV YAML file format: http://docs.opencv.org/2.4/modules/core/doc/xml_yaml_persistence.html#filestorage
ImageJ Text Image file format: https://imagej.nih.gov/ij/docs/guide/146-26.html#fig:TextImages
Converts a serialized FileStorage object to Text Image format.
ruby ./opencv2imagej.rb yaml_file [image_key]
yaml_file
: path to an OpenCV image in yaml formatimage_key
: the name of the serialized image, default is "img"
Macro for bulk converting Text Images (.txt files) to PNG format.
- Start ImageJ
- Run Macro
- Browse to directory containing txt files
- Browse to directory where PNG files should be saved