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

Tiled TIFF discrepency #1043

Open
chrstphrbrns opened this issue Oct 7, 2023 · 1 comment
Open

Tiled TIFF discrepency #1043

chrstphrbrns opened this issue Oct 7, 2023 · 1 comment

Comments

@chrstphrbrns
Copy link

chrstphrbrns commented Oct 7, 2023

Noticed this while developing new features for TiffImages.jl

It seems more likely that the images should be identical

$ convert -seed 3 -size 4023x3007 xc: +noise Random -define tiff:tile-geometry=256x256 'tiled.tif'
$ convert -seed 3 -size 4023x3007 xc: +noise Random 'non_tiled.tif'
julia> TiffImages.load("tiled.tif") == TiffImages.load("non_tiled.tif")
true

julia> Images.load("tiled.tif") == Images.load("non_tiled.tif")
false

julia> tiled = Images.load("tiled.tif");

julia> nontiled = Images.load("non_tiled.tif");

julia> max_discrepency = maximum(abs.(float.(red.(tiled)) .- float.(red.(nontiled))))
0.0019531846f0

julia> rationalize(max_discrepency)
64//32767
@mkitti
Copy link
Member

mkitti commented Oct 7, 2023

If we load this via ImageMagick.jl are the files equivalent then?

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

No branches or pull requests

2 participants