sorry but i'm new to imagemagick, i hope someone can help a simple task
i have a 16 bit per pixel, greyscale, raw format image (pc format data). (its a heightmap) i need to add a value to every pixel, say add 10, then save back as a raw file.
i think i need to use the math expression feature but can't figure it out, can anyone help?
(by the way, i changed the .raw file to 16 bit .tif and opened it in imagemagick and it looks ok so i can work with tif if its easier)
thx
please help with adding a value to greyscale image
-
- Posts: 2
- Joined: 2015-09-28T01:56:49-07:00
- Authentication code: 1151
-
- Posts: 2
- Joined: 2015-09-28T01:56:49-07:00
- Authentication code: 1151
Re: please help with adding a value to greyscale image
i got it,
C:\Program Files\ImageMagick-6.9.2-Q16>.\convert.exe \in.tif -fx '+.01'
c:\Users\me\Desktop\out.tif
C:\Program Files\ImageMagick-6.9.2-Q16>.\convert.exe \in.tif -fx '+.01'
c:\Users\me\Desktop\out.tif
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: please help with adding a value to greyscale image
"-evaluate Add" will be much faster:
Code: Select all
convert in.tif -evaluate Add 10 out.tif
snibgo's IM pages: im.snibgo.com