Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

new demo: block-by-block visualization as GIF #191

Open
wants to merge 2 commits into
base: source
Choose a base branch
from

Conversation

johnnychen94
Copy link
Member

@johnnychen94 johnnychen94 commented May 5, 2021

We'll need to merge #187 first before merging this one. I also plan to tweak/enhance ImageShow.gif a little bit to make it more reliable.

The cover image:

block_visualization

Comment on lines +41 to +46
map(tile_indices) do R
## add back axes information to given blcok
block = OffsetArray(img[R...], OffsetArrays.Origin(first.(R)))
canvas, block = paddedviews(zero(eltype(background)), background, block)
frame = clamp01!(@. rb*canvas .+ rf*block)
end
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are extra memory allocations here so it's not very efficient. The main reason I didn't optimize it is that the current ImageShow.gif is a little bit broken when dealing with non-Array array types.

@johnnychen94 johnnychen94 added the demo Ideas for demo/example to fulfill our gallery label Aug 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
demo Ideas for demo/example to fulfill our gallery
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant