hitzhangyu / Self-supervised-Image-Enhancement-Network-Training-With-Low-Light-Images-Only

Self-supervised Image Enhancement Network: Training With Low Light Images Only
137 stars 18 forks source link

评测 #20

Closed caotaotaotao closed 10 months ago

caotaotaotao commented 10 months ago

你好,请问您知道文章中用到的图像评测指标LOE的具体代码吗

hitzhangyu commented 10 months ago

function lightness_order_error = LOE( input_image,enhance_image,r ) %UNTITLED2 此处显示有关此函数的摘要 % 此处显示详细说明 [m,n,c]=size(input_image); [m2,n2,c2]=size(enhance_image); r=r/min(m,n) input_max_channel= max(input_image,[],3); enhace_max_channel= max(enhance_image,[],3); imput=imresize(input_max_channel,[floor(mr),floor(nr)]); enhance=imresize(enhace_maxchannel,[floor(mr),floor(nr)]); score=0; for i=1:floor(mr) for j=1:floor(nr) score=score+u(imput(i,j),enhance(i,j),imput,enhance); end end

lightness_ordererror = score/(floor(mr)floor(n*r)); end function score= u(x,y,image_x,image_y) %异或 image_x(image_x<x)=0; image_x(image_x>=x)=1; image_y(image_y<y)=0; image_y(image_y>=y)=1;

score=sum(sum(xor(image_x,image_y))); end

caotaotaotao commented 10 months ago

您好,这部分代码是关于有参的图像质量亮度顺序差的评估,我目前做的对比实验主要需要的是无参的只有增强结果的亮度顺序残差(LOE)。请问您知道无参的部分怎么弄吗?

hitzhangyu commented 10 months ago

低照度作为参考?

caotaotaotao commented 10 months ago

对的,给出的代码是低照度作为增强结果的参考。但很多链接点进去都是介绍的无参IQA,我个人理解无参的话应该只有一个增强结果作为输入。

@.***

@.*** |

---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2023年09月12日 09:32 | | 收件人 | @.> | | 抄送至 | @.>@.> | | 主题 | Re: [hitzhangyu/Self-supervised-Image-Enhancement-Network-Training-With-Low-Light-Images-Only] 评测 (Issue #20) |

低照度作为参考?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

hitzhangyu commented 10 months ago

有/无参考质量评价指标的区别是是否使用参考图像,这个参考图像指的是正常照度(high-light)的图像

caotaotaotao commented 10 months ago

懂了,谢谢指导!

@.***

@.*** |

---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2023年09月12日 09:44 | | 收件人 | @.> | | 抄送至 | @.>@.> | | 主题 | Re: [hitzhangyu/Self-supervised-Image-Enhancement-Network-Training-With-Low-Light-Images-Only] 评测 (Issue #20) |

有/无参考质量评价指标的区别是是否使用参考图像,这个参考图像指的是正常照度(high-light)的图像

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

hitzhangyu commented 10 months ago

小事儿