我正在寻找Linux软件,它允许调整原始图像的曝光。我想做一个“自动HDR”脚本,将改变照片的曝光自动,然后将结果合并成一个HDR图像。
我知道我当然可以使用RawTherapee或Darktable来做这件事,但是我仍然喜欢无头的方式,因为如果没有必要的话,我不想依赖GUI。
感谢任何回复或评论的人。我真的很感激你的建议。
发布于 2023-01-08 21:38:25
我最近一直在做类似的事情。我要在最后一张图像上绘制光色调图。没有光环。
到目前为止,我得到的是:
#!/bin/bash
for file in $@
do
ufraw-batch "$file" --auto-crop --exposure=-1.5 --output="${file%.nef}-0.ppm"
ufraw-batch "$file" --auto-crop --exposure=auto --output="${file%.nef}-1.ppm"
ufraw-batch "$file" --auto-crop --exposure=+1.5 --output="${file%.nef}-2.ppm"
enfuse "${file%.nef}-0.ppm" "${file%.nef}-1.ppm" "${file%.nef}-2.ppm" --output="${file%.nef}.ppm"
rm "${file%.nef}-0.ppm" "${file%.nef}-1.ppm" "${file%.nef}-2.ppm"
convert-jpeg "${file%.nef}.ppm"
exiftool -overwrite_original -TagsFromFile "${file}" -x Orientation "${file%.nef}.jpg"
jhead -ft "${file%.nef}.jpg"
chmod 644 "${file%.nef}.jpg"
rm "${file%.nef}.ppm"
done基本上,ufraw-批处理或dcraw提取一个文件并调整其曝光.我还没有想出如何根据自动计算的曝光调整来调整,所以我只是做了- 1.5,自动,然后1.5,它似乎做得很好。
然后我有一个小脚本调用imagemagick并将最终组装的ppm转换为jpeg,使用exiftool复制exif信息,jhead根据exif信息设置文件日期,并擦除中间ppm。
好了。
令人高兴的是,在所有情况下,这都比相机内算法做得更好,而且看起来并不是花哨的和卡通的。
https://softwarerecs.stackexchange.com/questions/84690
复制相似问题