按顺序平均图像
我意识到可能有更好的地方来问这个问题,但我认为你们都会得到一些有价值的反馈。
人们被要求在白色卡瓦纸上用黑色画出一个形状。然后将他们的绘图添加到运行平均值中。我希望显示图像中最常见的部分,并且绘图中与大多数其他绘图不同的部分消失。
我的两个问题是我使用 ImageMagick 来处理图像,这意味着我只能一次创建两个图像的合成。所以我有运行的总图像,以及要添加的最新图像。我无法通过这种方式得到真正的平均值。
其次,我不完全理解混合模式,特别是当涉及不同的不透明度时。我不确定哪个最好用。
I realize there might be a better place to ask this, but I think you all will have some valuable feedback.
People are asked to draw a shape in black on a white cavas. Then their drawing is added to the running average. I'd like to have the parts that the images mostly have in common be shown, and the parts of the drawing that are unlike most of the other drawings disappear.
My two problems are that I'm using ImageMagick to process the images, which means that I can only create a composite of two images at once. So I have the running total image, and the newest one to add. I cannot get a real average this way.
Secondly, I do not fully understand blending modes particularly when different opacities are involved. I'm not sure which is the best to use.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当您添加前两个图像时,您将它们均匀地混合。但是,当您将第三张图像添加到混合中时,您必须更改每个图像的权重。两个图像合成应混合 66.6%,而新图像应仅贡献 33.3%。对于第四张图像,您将分别以 75% 和 25% 进行混合。一般来说,如果合成中有 n 个图像,则添加新图像时应贡献 100/(n+1)%。
正如您所看到的,您拥有的图像越多,单个图像对合成结果的影响就越小。
When you add the first two images you blend them equally. But then when you add the 3rd image to the mix you have to change the weight of each image. The two image composite should be blended at 66.6% while the new image should contribute just 33.3%. For the 4th image you will blend at 75% and 25% respectively. In general, if you have n images in the composite, then the new image should contribute 100/(n+1) percent when added.
As you see, the more images you have the less an individual image affects the composite result.