How can response maps keep the strongest signal at each location?
lighter selects the larger input value at each position in each band.
Pixel experiment and interpretation
Two annotators mark different cells and both survive. With RGB the winning channels may come from different images, yielding a previously unseen color.
from PIL import Image, ImageChops
def row(values):
return Image.frombytes('L', (len(values), 1), bytes(values))
list(ImageChops.lighter(row([200,10]),row([30,140])).tobytes())Result [200, 140]
中文
多个灰度置信图如何保留每个位置的最高响应?
lighter 逐通道选取两个输入中的较大值。
像素实验与适用边界
两位标注员分别点亮不同位置,输出两处都亮。在 RGB 下不同通道可能来自不同图片,合成颜色未必曾经出现过。
from PIL import Image, ImageChops
def row(values):
return Image.frombytes('L', (len(values), 1), bytes(values))
list(ImageChops.lighter(row([200,10]),row([30,140])).tobytes())结果 [200, 140]