Skip to content

Connected Components Abort Trap 6 Error #4372

@fmw42

Description

@fmw42

ImageMagick version

7.1.0-10

Operating system

MacOS

Operating system, version and so on

OSX Sierra

Description

Connected Components Abort Traps when filtering on area

Image:

objects

magick objects.gif -type bilevel \
-define connected-components:mean-color=true \
-define connected-components:verbose=true \
-define connected-components:area-threshold=100 \
-connected-components 4 x.png

Objects (id: bounding-box centroid area mean-color Abort trap: 6

Works fine in IM 6.9.12-25

convert objects.gif -type bilevel \
-define connected-components:mean-color=true \
-define connected-components:verbose=true \
-define connected-components:area-threshold=100 \
-connected-components 4 x.png

Objects (id: bounding-box centroid area mean-color):
0: 256x171+0+0 119.3,80.7 33148 gray(0)
2: 120x135+104+18 159.5,106.5 8690 gray(255)
3: 50x36+129+44 154.2,63.4 1529 gray(0)
4: 21x23+0+45 8.8,55.9 409 gray(255)

Also works fine without the area threshold

magick objects.gif -type bilevel \
> -define connected-components:mean-color=true \
> -define connected-components:verbose=true \
> -connected-components 4 x.png

Objects (id: bounding-box centroid area mean-color):
0: 256x171+0+0 119.2,80.8 33117 gray(0)
2: 120x135+104+18 159.5,106.5 8690 gray(255)
3: 50x36+129+44 154.2,63.4 1529 gray(0)
4: 21x23+0+45 8.8,55.9 409 gray(255)
1: 4x10+252+0 253.9,4.1 31 gray(255)

Steps to Reproduce

See above

Images

See above

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions