Ask Your Question
0

A raw format for testing purposes?

asked 2016-01-13 22:33:57 -0600

Terry gravatar image

Hi, For adding some unit tests, I would like to create some image files in raw format. So, that I can load them later from for use in a test harness. imwrite can't save in raw format. what format do I save in? Is this ppm ok for that purpose? Or should you store a numpy array and read it back?

edit retag flag offensive close merge delete

Comments

Why would you like to save it and then load it for testing? Isn't creating it enough? You can create the image you want any time

thdrksdfthmn gravatar imagethdrksdfthmn ( 2016-01-14 02:37:51 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2016-01-14 03:23:38 -0600

Adi gravatar image

If your raw data is a normal image, then any lossless format that supports your raw data depth should be fine. Try PNG. It is a lossless image format.

edit flag offensive delete link more

Comments

saving it as .exr file would also make the trick.

theodore gravatar imagetheodore ( 2016-01-14 11:14:23 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2016-01-13 22:33:57 -0600

Seen: 139 times

Last updated: Jan 14 '16