Closed johnnychen94 closed 4 years ago
Thank you Johnny for proposing the move. I like the idea of moving anything from Images.jl to subpakcages, and these functions seem to fit well in ImageMorphology.jl
On Wed, May 15, 2019, 23:44 Johnny Chen notifications@github.com wrote:
I propose to move the following two files to ImageMorphology.jl
- connected.jl https://github.com/JuliaImages/Images.jl/blob/master/src/connected.jl
- convexhull.jl https://github.com/JuliaImages/Images.jl/blob/master/src/convexhull.jl
My reason is: graphs are heavily used in morphology operations
ported functions:
- label_components https://github.com/JuliaImages/Images.jl/blob/master/src/connected.jl#L3-L29 and label_components! (This blocks PR: add imfill function https://github.com/JuliaImages/ImageMorphology.jl/pull/9)
- convexhull https://github.com/JuliaImages/Images.jl/blob/master/src/convexhull.jl
- component_boxes https://github.com/JuliaImages/Images.jl/blob/bdfd044420fa6ffcd34760f804f0c3ce12186945/src/connected.jl#L228-L244, component_lengths, component_indices, component_subscripts, component_centroids
All of these functions are exported by Images, but it would quite painless since ImageMorphology is reexported by Images
Possibly, labeledarrays.jl https://github.com/JuliaImages/Images.jl/blob/master/src/labeledarrays.jl can be ported to ImageMorphology.jl as well.
cc: @juliohm https://github.com/juliohm, @aquatiko https://github.com/aquatiko
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/JuliaImages/Images.jl/issues/807?email_source=notifications&email_token=AAZQW3O37TBC4MCMHVUZ2RTPVTC7HA5CNFSM4HNIOZ42YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GUCAMXQ, or mute the thread https://github.com/notifications/unsubscribe-auth/AAZQW3KKW7DRDDADJVBJHJTPVTC7HANCNFSM4HNIOZ4Q .
I propose to move the following two files to
ImageMorphology.jl
connected.jl
convexhull.jl
My reason is: graphs are heavily used in morphology operations
ported functions:
label_components
andlabel_components!
(This blocks PR: addimfill
function)convexhull
component_boxes
,component_lengths
,component_indices
,component_subscripts
,component_centroids
All of these functions are exported by
Images
, but it would quite painless sinceImageMorphology
is reexported byImages
Possibly,
labeledarrays.jl
can be ported toImageMorphology.jl
as well.cc: @juliohm, @aquatiko