Skip to content

reexport MosaicViews#127

Merged
johnnychen94 merged 3 commits intomasterfrom
jc/mosaicview
Apr 8, 2020
Merged

reexport MosaicViews#127
johnnychen94 merged 3 commits intomasterfrom
jc/mosaicview

Conversation

@johnnychen94
Copy link
Copy Markdown
Member

@johnnychen94 johnnychen94 commented Apr 2, 2020

Moved from JuliaImages/ImageShow.jl#19 here so that other image view packages (e.g., ImageView, Plots) can also benefit from this.

In short, this introduces mosaicview as an enhanced version of cat to make the image displaying tasks easier.

Here're two main usages:

  1. Compare images of different sizes and colorants (not necessarily two images)
using ImageCore, ImageShow, TestImages
using ColorVectorSpace # this is required for `zero(RGB)`

lena = testimage("lena") # 256*256 RGB image
cameraman = testimage("cameraman") # 512*512 Gray image
mosaicview(lena, cameraman; nrow=1)

image

  1. give a nice looking 2d view for higher-dimensional image (or images)
using ImageCore, ImageShow, TestImages
img = testimage("mri") # 226×186×27

mosaicview(img; fillvalue=0.5, npad=2, ncol=7, rowmajor=true)

image

closes JuliaImages/ImageShow.jl#19

This introduces `mosaicview` as an enhanced version of `cat` to make
image display easier.
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 2, 2020

Codecov Report

Merging #127 into master will not change coverage by %.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #127   +/-   ##
=======================================
  Coverage   60.50%   60.50%           
=======================================
  Files           9        9           
  Lines         400      400           
=======================================
  Hits          242      242           
  Misses        158      158           
Impacted Files Coverage Δ
src/ImageCore.jl 56.00% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dabb1b4...3edb332. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant