From 34ea3d6a00da6f3592e030c74b31cf04ccfef144 Mon Sep 17 00:00:00 2001 From: Johnny Chen Date: Fri, 16 Apr 2021 13:25:39 +0800 Subject: [PATCH] reexport commonly used array/view packages - IndirectArrays - MappedArrays - OffsetArrays - TiledIteration --- Project.toml | 4 ++++ src/ImageCore.jl | 12 ++++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/Project.toml b/Project.toml index 1d7d5e1..d7a5396 100644 --- a/Project.toml +++ b/Project.toml @@ -7,11 +7,13 @@ AbstractFFTs = "621f4979-c628-5d54-868e-fcf4e3e8185c" Colors = "5ae59095-9a9b-59fe-a467-6f913c188581" FixedPointNumbers = "53c48c17-4a7d-5ca2-90c5-79b7896eea93" Graphics = "a2bd30eb-e257-5431-a919-1863eab51364" +IndirectArrays = "9b13fd28-a010-5f03-acff-a1bbcff69959" MappedArrays = "dbb5928d-eab1-5f90-85c2-b9b0edb7c900" MosaicViews = "e94cdb99-869f-56ef-bcf0-1ae2bcbe0389" OffsetArrays = "6fe1bfb0-de20-5000-8ca7-80f57d26f881" PaddedViews = "5432bcbf-9aad-5242-b902-cca2824c8663" Reexport = "189a3867-3050-52da-a836-e630ba90ab69" +TiledIteration = "06e1c1a7-607b-532d-9fad-de7d9aa2abac" [compat] AbstractFFTs = "0.4, 0.5, 1.0" @@ -19,11 +21,13 @@ ColorVectorSpace = "0.8" Colors = "0.9, 0.10, 0.11, 0.12" FixedPointNumbers = "0.6.1, 0.7, 0.8" Graphics = "0.4, 1.0" +IndirectArrays = "0.5" MappedArrays = "0.2, 0.3, 0.4" MosaicViews = "0.3.3" OffsetArrays = "0.8, 0.9, 0.10, 0.11, 1.0.1" PaddedViews = "0.5.8" Reexport = "0.2, 1.0" +TiledIteration = "0.2, 0.3" julia = "1" [extras] diff --git a/src/ImageCore.jl b/src/ImageCore.jl index f8b3223..8db54d6 100644 --- a/src/ImageCore.jl +++ b/src/ImageCore.jl @@ -15,10 +15,18 @@ if !isdefined(ColorTypes, :XRGB) const RGBX = RGB4 end +# These view/array/iterator types are used widely in downstream packages for image processing purposes. +# Here we maintain the compatibility inside ImageCore and so that downstream packages don't need +# to directly depend on them. The advantages are 1) less manual maintenance work required in +# downstream packages, and consequently 2) less potential version locks/conflicts. @reexport using MosaicViews @reexport using PaddedViews -using MappedArrays, Graphics -using OffsetArrays # for show.jl +@reexport using IndirectArrays +@reexport using MappedArrays +@reexport using OffsetArrays +@reexport using TiledIteration + +using Graphics using .ColorTypes: colorant_string using Colors: Fractional using MappedArrays: AbstractMultiMappedArray