Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

preprocess.c

uses ImageMagick to convert a directory of images <input_image_dir> (image 
format support from libmagickcore) into a greyscale pixel [n][h_res][v_res] 
byte array, and write the bytes row-major order to <output_file>

output_file format:
0x00 - 0x01: num_images
0x02 - 0x03: out_h_res
0x04 - 0x05: out_v_res
0x06 - ... : pixel_data

./preprocess <input_image_dir> <output_file> <out_h_res> <out_v_res>

About

convert a directory of images into a greyscale byte array stored in a file

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages