Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Make the markdown output tabular #187

Open
lu-zero opened this issue Oct 24, 2020 · 3 comments
Open

Make the markdown output tabular #187

lu-zero opened this issue Oct 24, 2020 · 3 comments

Comments

@lu-zero
Copy link
Member

lu-zero commented Oct 24, 2020

It would look much better as table.

@AishwaryaKaranth
Copy link

Can I work on this issue?

@lu-zero
Copy link
Member Author

lu-zero commented Oct 24, 2020

Sure :)

@osman-turan
Copy link

This looks like already completed:

OutputType::Markdown(w) => {
writeln!(
w,
"|filename|psnr|apsnr|psnr_hvs|ssim|msssim|ciede2000|\n\
|-|-|-|-|-|-|-|"
)
.map_err(|err| err.to_string())?;
for cmp in self.comparisons.iter() {
writeln!(
w,
"|{}|{}|{}|{}|{}|{}|{}|",
cmp.filename,
cmp.psnr.map(|v| v.avg).unwrap_or(-0.0),
cmp.apsnr.map(|v| v.avg).unwrap_or(-0.0),
cmp.psnr_hvs.map(|v| v.avg).unwrap_or(-0.0),
cmp.ssim.map(|v| v.avg).unwrap_or(-0.0),
cmp.msssim.map(|v| v.avg).unwrap_or(-0.0),
cmp.ciede2000.unwrap_or(-0.0)
)
.map_err(|err| err.to_string())?;
}
}

Safe to close the issue, or?

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

3 participants