Page 1 of 3

cant get morpholgy of this image ?

Posted: 2017-03-25T18:23:00-07:00
by diegomage
I see this post

http://stackoverflow.com/questions/3156 ... -in-opencv

and i use
this command but not get nothing similar to this post

this is my image

Image

i use this code

Code: Select all

convert  threeshold  -morphology Thinning:-1 Skeleton   skeleton.jpg 
whats doing wrong please help me

Re: cant get morpholgy of this image ?

Posted: 2017-03-25T18:41:36-07:00
by snibgo
What version IM are you using? On what platform?

Is your input image really called "threeshold"?

What output do you expect? What output do you get?

Re: cant get morpholgy of this image ?

Posted: 2017-03-25T18:59:54-07:00
by diegomage
I expected this

Image

Re: cant get morpholgy of this image ?

Posted: 2017-03-25T19:01:39-07:00
by diegomage
I obtain this

Image

Re: cant get morpholgy of this image ?

Posted: 2017-03-25T19:01:56-07:00
by diegomage
I use version 7.0

Re: cant get morpholgy of this image ?

Posted: 2017-03-25T19:15:20-07:00
by fmw42
Your image is not binary. It is a jpeg that has lots of different graylevels. You need to threshold the image first. And you should not save it as jpg or it will get more graylevels. Save as GIF for example.

This works fine:

Code: Select all

convert kLdPK.jpg -threshold 50% -morphology Thinning:-1 Skeleton skeleton.gif
Image

You should check the image before processing to know exactly what you are starting with. Use

Code: Select all

identify -verbose kLdPK.jpg
to see that it is not binary.

Re: cant get morpholgy of this image ?

Posted: 2017-03-25T19:17:43-07:00
by diegomage
Rendering intent: Undefined
Gamma: 0.454545
Alpha color: grey74
Background color: white
Border color: srgb(223,223,223)
Transparent color: none
Interlace: None
Intensity: Undefined
Compose: Over
Page geometry: 98x98+0+0
Dispose: Undefined
Iterations: 0
Compression: JPEG
Quality: 95
Orientation: Undefined
Properties:
date:create: 2017-03-26T04:16:29+02:00
date:modify: 2017-03-26T04:16:27+02:00
jpeg:colorspace: 1
jpeg:sampling-factor: 1x1
signature: 9fe876a00b9fc159451b5fb9a650bde75189914dbcb22621c132d3138f42803d
Artifacts:
verbose: true
Tainted: False
Filesize: 2.41KB
Number pixels: 9.6K
User time: 0.000u
Elapsed time: 0:01.000
Version: ImageMagick 7.0.4-9 Q16 x86_64 2017-02-20 http://www.imagemagick.org

Re: cant get morpholgy of this image ?

Posted: 2017-03-25T19:18:48-07:00
by fmw42
You have not used identify -verbose properly or are cutting off the top of the listing showing all the colors/graylevels.

Code: Select all

Image: kLdPK.jpg
  Format: JPEG (Joint Photographic Experts Group JFIF format)
  Mime type: image/jpeg
  Class: PseudoClass
  Geometry: 98x98+0+0
  Units: Undefined
  Type: Grayscale
  Endianess: Undefined
  Colorspace: Gray
  Depth: 8-bit
  Channel depth:
    gray: 8-bit
  Channel statistics:
    Pixels: 9604
    Gray:
      min: 0 (0)
      max: 255 (1)
      mean: 50.8168 (0.199282)
      standard deviation: 101.642 (0.398595)
      kurtosis: 0.266168
      skewness: 1.5053
      entropy: 0.342397
  Colors: 15
  Histogram:
      7204: (  0,  0,  0) #000000 gray(0)
       251: (  1,  1,  1) #010101 gray(1)
       145: (  2,  2,  2) #020202 gray(2)
        56: (  3,  3,  3) #030303 gray(3)
        21: (  4,  4,  4) #040404 gray(4)
        11: (  5,  5,  5) #050505 gray(5)
         1: (  6,  6,  6) #060606 gray(6)
         1: (  7,  7,  7) #070707 gray(7)
         2: (248,248,248) #F8F8F8 gray(248)
         9: (250,250,250) #FAFAFA gray(250)
        29: (251,251,251) #FBFBFB gray(251)
        50: (252,252,252) #FCFCFC gray(252)
       131: (253,253,253) #FDFDFD gray(253)
       299: (254,254,254) #FEFEFE gray(254)
      1394: (255,255,255) #FFFFFF gray(255)
  Colormap entries: 256
  Colormap:
         0: (  0,  0,  0) #000000 gray(0)
         1: (  1,  1,  1) #010101 gray(1)
         2: (  2,  2,  2) #020202 gray(2)
         3: (  3,  3,  3) #030303 gray(3)
         4: (  4,  4,  4) #040404 gray(4)
         5: (  5,  5,  5) #050505 gray(5)
         6: (  6,  6,  6) #060606 gray(6)
         7: (  7,  7,  7) #070707 gray(7)
         8: (  8,  8,  8) #080808 gray(8)
         9: (  9,  9,  9) #090909 gray(9)
        10: ( 10, 10, 10) #0A0A0A gray(10)
        11: ( 11, 11, 11) #0B0B0B gray(11)
        12: ( 12, 12, 12) #0C0C0C gray(12)
        13: ( 13, 13, 13) #0D0D0D gray(13)
        14: ( 14, 14, 14) #0E0E0E gray(14)
        15: ( 15, 15, 15) #0F0F0F gray(15)
        16: ( 16, 16, 16) #101010 gray(16)
        17: ( 17, 17, 17) #111111 gray(17)
        18: ( 18, 18, 18) #121212 gray(18)
        19: ( 19, 19, 19) #131313 gray(19)
        20: ( 20, 20, 20) #141414 gray(20)
        21: ( 21, 21, 21) #151515 gray(21)
        22: ( 22, 22, 22) #161616 gray(22)
        23: ( 23, 23, 23) #171717 gray(23)
        24: ( 24, 24, 24) #181818 gray(24)
        25: ( 25, 25, 25) #191919 gray(25)
        26: ( 26, 26, 26) #1A1A1A gray(26)
        27: ( 27, 27, 27) #1B1B1B gray(27)
        28: ( 28, 28, 28) #1C1C1C gray(28)
        29: ( 29, 29, 29) #1D1D1D gray(29)
        30: ( 30, 30, 30) #1E1E1E gray(30)
        31: ( 31, 31, 31) #1F1F1F gray(31)
        32: ( 32, 32, 32) #202020 gray(32)
        33: ( 33, 33, 33) #212121 gray(33)
        34: ( 34, 34, 34) #222222 gray(34)
        35: ( 35, 35, 35) #232323 gray(35)
        36: ( 36, 36, 36) #242424 gray(36)
        37: ( 37, 37, 37) #252525 gray(37)
        38: ( 38, 38, 38) #262626 gray(38)
        39: ( 39, 39, 39) #272727 gray(39)
        40: ( 40, 40, 40) #282828 gray(40)
        41: ( 41, 41, 41) #292929 gray(41)
        42: ( 42, 42, 42) #2A2A2A gray(42)
        43: ( 43, 43, 43) #2B2B2B gray(43)
        44: ( 44, 44, 44) #2C2C2C gray(44)
        45: ( 45, 45, 45) #2D2D2D gray(45)
        46: ( 46, 46, 46) #2E2E2E gray(46)
        47: ( 47, 47, 47) #2F2F2F gray(47)
        48: ( 48, 48, 48) #303030 gray(48)
        49: ( 49, 49, 49) #313131 gray(49)
        50: ( 50, 50, 50) #323232 gray(50)
        51: ( 51, 51, 51) #333333 gray(51)
        52: ( 52, 52, 52) #343434 gray(52)
        53: ( 53, 53, 53) #353535 gray(53)
        54: ( 54, 54, 54) #363636 gray(54)
        55: ( 55, 55, 55) #373737 gray(55)
        56: ( 56, 56, 56) #383838 gray(56)
        57: ( 57, 57, 57) #393939 gray(57)
        58: ( 58, 58, 58) #3A3A3A gray(58)
        59: ( 59, 59, 59) #3B3B3B gray(59)
        60: ( 60, 60, 60) #3C3C3C gray(60)
        61: ( 61, 61, 61) #3D3D3D gray(61)
        62: ( 62, 62, 62) #3E3E3E gray(62)
        63: ( 63, 63, 63) #3F3F3F gray(63)
        64: ( 64, 64, 64) #404040 gray(64)
        65: ( 65, 65, 65) #414141 gray(65)
        66: ( 66, 66, 66) #424242 gray(66)
        67: ( 67, 67, 67) #434343 gray(67)
        68: ( 68, 68, 68) #444444 gray(68)
        69: ( 69, 69, 69) #454545 gray(69)
        70: ( 70, 70, 70) #464646 gray(70)
        71: ( 71, 71, 71) #474747 gray(71)
        72: ( 72, 72, 72) #484848 gray(72)
        73: ( 73, 73, 73) #494949 gray(73)
        74: ( 74, 74, 74) #4A4A4A gray(74)
        75: ( 75, 75, 75) #4B4B4B gray(75)
        76: ( 76, 76, 76) #4C4C4C gray(76)
        77: ( 77, 77, 77) #4D4D4D gray(77)
        78: ( 78, 78, 78) #4E4E4E gray(78)
        79: ( 79, 79, 79) #4F4F4F gray(79)
        80: ( 80, 80, 80) #505050 gray(80)
        81: ( 81, 81, 81) #515151 gray(81)
        82: ( 82, 82, 82) #525252 gray(82)
        83: ( 83, 83, 83) #535353 gray(83)
        84: ( 84, 84, 84) #545454 gray(84)
        85: ( 85, 85, 85) #555555 gray(85)
        86: ( 86, 86, 86) #565656 gray(86)
        87: ( 87, 87, 87) #575757 gray(87)
        88: ( 88, 88, 88) #585858 gray(88)
        89: ( 89, 89, 89) #595959 gray(89)
        90: ( 90, 90, 90) #5A5A5A gray(90)
        91: ( 91, 91, 91) #5B5B5B gray(91)
        92: ( 92, 92, 92) #5C5C5C gray(92)
        93: ( 93, 93, 93) #5D5D5D gray(93)
        94: ( 94, 94, 94) #5E5E5E gray(94)
        95: ( 95, 95, 95) #5F5F5F gray(95)
        96: ( 96, 96, 96) #606060 gray(96)
        97: ( 97, 97, 97) #616161 gray(97)
        98: ( 98, 98, 98) #626262 gray(98)
        99: ( 99, 99, 99) #636363 gray(99)
       100: (100,100,100) #646464 gray(100)
       101: (101,101,101) #656565 gray(101)
       102: (102,102,102) #666666 gray(102)
       103: (103,103,103) #676767 gray(103)
       104: (104,104,104) #686868 gray(104)
       105: (105,105,105) #696969 gray(105)
       106: (106,106,106) #6A6A6A gray(106)
       107: (107,107,107) #6B6B6B gray(107)
       108: (108,108,108) #6C6C6C gray(108)
       109: (109,109,109) #6D6D6D gray(109)
       110: (110,110,110) #6E6E6E gray(110)
       111: (111,111,111) #6F6F6F gray(111)
       112: (112,112,112) #707070 gray(112)
       113: (113,113,113) #717171 gray(113)
       114: (114,114,114) #727272 gray(114)
       115: (115,115,115) #737373 gray(115)
       116: (116,116,116) #747474 gray(116)
       117: (117,117,117) #757575 gray(117)
       118: (118,118,118) #767676 gray(118)
       119: (119,119,119) #777777 gray(119)
       120: (120,120,120) #787878 gray(120)
       121: (121,121,121) #797979 gray(121)
       122: (122,122,122) #7A7A7A gray(122)
       123: (123,123,123) #7B7B7B gray(123)
       124: (124,124,124) #7C7C7C gray(124)
       125: (125,125,125) #7D7D7D gray(125)
       126: (126,126,126) #7E7E7E gray(126)
       127: (127,127,127) #7F7F7F gray(127)
       128: (128,128,128) #808080 gray(128)
       129: (129,129,129) #818181 gray(129)
       130: (130,130,130) #828282 gray(130)
       131: (131,131,131) #838383 gray(131)
       132: (132,132,132) #848484 gray(132)
       133: (133,133,133) #858585 gray(133)
       134: (134,134,134) #868686 gray(134)
       135: (135,135,135) #878787 gray(135)
       136: (136,136,136) #888888 gray(136)
       137: (137,137,137) #898989 gray(137)
       138: (138,138,138) #8A8A8A gray(138)
       139: (139,139,139) #8B8B8B gray(139)
       140: (140,140,140) #8C8C8C gray(140)
       141: (141,141,141) #8D8D8D gray(141)
       142: (142,142,142) #8E8E8E gray(142)
       143: (143,143,143) #8F8F8F gray(143)
       144: (144,144,144) #909090 gray(144)
       145: (145,145,145) #919191 gray(145)
       146: (146,146,146) #929292 gray(146)
       147: (147,147,147) #939393 gray(147)
       148: (148,148,148) #949494 gray(148)
       149: (149,149,149) #959595 gray(149)
       150: (150,150,150) #969696 gray(150)
       151: (151,151,151) #979797 gray(151)
       152: (152,152,152) #989898 gray(152)
       153: (153,153,153) #999999 gray(153)
       154: (154,154,154) #9A9A9A gray(154)
       155: (155,155,155) #9B9B9B gray(155)
       156: (156,156,156) #9C9C9C gray(156)
       157: (157,157,157) #9D9D9D gray(157)
       158: (158,158,158) #9E9E9E gray(158)
       159: (159,159,159) #9F9F9F gray(159)
       160: (160,160,160) #A0A0A0 gray(160)
       161: (161,161,161) #A1A1A1 gray(161)
       162: (162,162,162) #A2A2A2 gray(162)
       163: (163,163,163) #A3A3A3 gray(163)
       164: (164,164,164) #A4A4A4 gray(164)
       165: (165,165,165) #A5A5A5 gray(165)
       166: (166,166,166) #A6A6A6 gray(166)
       167: (167,167,167) #A7A7A7 gray(167)
       168: (168,168,168) #A8A8A8 gray(168)
       169: (169,169,169) #A9A9A9 gray(169)
       170: (170,170,170) #AAAAAA gray(170)
       171: (171,171,171) #ABABAB gray(171)
       172: (172,172,172) #ACACAC gray(172)
       173: (173,173,173) #ADADAD gray(173)
       174: (174,174,174) #AEAEAE gray(174)
       175: (175,175,175) #AFAFAF gray(175)
       176: (176,176,176) #B0B0B0 gray(176)
       177: (177,177,177) #B1B1B1 gray(177)
       178: (178,178,178) #B2B2B2 gray(178)
       179: (179,179,179) #B3B3B3 gray(179)
       180: (180,180,180) #B4B4B4 gray(180)
       181: (181,181,181) #B5B5B5 gray(181)
       182: (182,182,182) #B6B6B6 gray(182)
       183: (183,183,183) #B7B7B7 gray(183)
       184: (184,184,184) #B8B8B8 gray(184)
       185: (185,185,185) #B9B9B9 gray(185)
       186: (186,186,186) #BABABA gray(186)
       187: (187,187,187) #BBBBBB gray(187)
       188: (188,188,188) #BCBCBC gray(188)
       189: (189,189,189) #BDBDBD gray(189)
       190: (190,190,190) #BEBEBE gray(190)
       191: (191,191,191) #BFBFBF gray(191)
       192: (192,192,192) #C0C0C0 gray(192)
       193: (193,193,193) #C1C1C1 gray(193)
       194: (194,194,194) #C2C2C2 gray(194)
       195: (195,195,195) #C3C3C3 gray(195)
       196: (196,196,196) #C4C4C4 gray(196)
       197: (197,197,197) #C5C5C5 gray(197)
       198: (198,198,198) #C6C6C6 gray(198)
       199: (199,199,199) #C7C7C7 gray(199)
       200: (200,200,200) #C8C8C8 gray(200)
       201: (201,201,201) #C9C9C9 gray(201)
       202: (202,202,202) #CACACA gray(202)
       203: (203,203,203) #CBCBCB gray(203)
       204: (204,204,204) #CCCCCC gray(204)
       205: (205,205,205) #CDCDCD gray(205)
       206: (206,206,206) #CECECE gray(206)
       207: (207,207,207) #CFCFCF gray(207)
       208: (208,208,208) #D0D0D0 gray(208)
       209: (209,209,209) #D1D1D1 gray(209)
       210: (210,210,210) #D2D2D2 gray(210)
       211: (211,211,211) #D3D3D3 gray(211)
       212: (212,212,212) #D4D4D4 gray(212)
       213: (213,213,213) #D5D5D5 gray(213)
       214: (214,214,214) #D6D6D6 gray(214)
       215: (215,215,215) #D7D7D7 gray(215)
       216: (216,216,216) #D8D8D8 gray(216)
       217: (217,217,217) #D9D9D9 gray(217)
       218: (218,218,218) #DADADA gray(218)
       219: (219,219,219) #DBDBDB gray(219)
       220: (220,220,220) #DCDCDC gray(220)
       221: (221,221,221) #DDDDDD gray(221)
       222: (222,222,222) #DEDEDE gray(222)
       223: (223,223,223) #DFDFDF gray(223)
       224: (224,224,224) #E0E0E0 gray(224)
       225: (225,225,225) #E1E1E1 gray(225)
       226: (226,226,226) #E2E2E2 gray(226)
       227: (227,227,227) #E3E3E3 gray(227)
       228: (228,228,228) #E4E4E4 gray(228)
       229: (229,229,229) #E5E5E5 gray(229)
       230: (230,230,230) #E6E6E6 gray(230)
       231: (231,231,231) #E7E7E7 gray(231)
       232: (232,232,232) #E8E8E8 gray(232)
       233: (233,233,233) #E9E9E9 gray(233)
       234: (234,234,234) #EAEAEA gray(234)
       235: (235,235,235) #EBEBEB gray(235)
       236: (236,236,236) #ECECEC gray(236)
       237: (237,237,237) #EDEDED gray(237)
       238: (238,238,238) #EEEEEE gray(238)
       239: (239,239,239) #EFEFEF gray(239)
       240: (240,240,240) #F0F0F0 gray(240)
       241: (241,241,241) #F1F1F1 gray(241)
       242: (242,242,242) #F2F2F2 gray(242)
       243: (243,243,243) #F3F3F3 gray(243)
       244: (244,244,244) #F4F4F4 gray(244)
       245: (245,245,245) #F5F5F5 gray(245)
       246: (246,246,246) #F6F6F6 gray(246)
       247: (247,247,247) #F7F7F7 gray(247)
       248: (248,248,248) #F8F8F8 gray(248)
       249: (249,249,249) #F9F9F9 gray(249)
       250: (250,250,250) #FAFAFA gray(250)
       251: (251,251,251) #FBFBFB gray(251)
       252: (252,252,252) #FCFCFC gray(252)
       253: (253,253,253) #FDFDFD gray(253)
       254: (254,254,254) #FEFEFE gray(254)
       255: (255,255,255) #FFFFFF gray(255)
  Rendering intent: Undefined
  Gamma: 0.454545
  Background color: gray(255)
  Border color: gray(223)
  Matte color: gray(189)
  Transparent color: gray(0)
  Interlace: None
  Intensity: Undefined
  Compose: Over
  Page geometry: 98x98+0+0
  Dispose: Undefined
  Iterations: 0
  Compression: JPEG
  Quality: 95
  Orientation: Undefined
  Properties:
    date:create: 2017-03-25T19:10:31-07:00
    date:modify: 2017-03-25T19:10:31-07:00
    jpeg:colorspace: 1
    jpeg:sampling-factor: 1x1
    signature: 2d123f964b5d2ec9d097448670b8c35dcbad268a5a6425285aef134d031c6346
  Artifacts:
    filename: kLdPK.jpg
    verbose: true
  Tainted: False
  Filesize: 2.41KB
  Number pixels: 9.6K
  Pixels per second: 320KB
  User time: 0.010u
  Elapsed time: 0:01.029
  Version: ImageMagick 6.9.8-3 Q16 x86_64 2017-03-25 http://www.imagemagick.org
Fred-Weinhauss-Mac-mini:desktop fred$ 

Re: cant get morpholgy of this image ?

Posted: 2017-03-25T19:19:07-07:00
by diegomage
Image: kLdPK.jpg
Format: JPEG (Joint Photographic Experts Group JFIF format)
Mime type: image/jpeg
Class: PseudoClass
Geometry: 98x98+0+0
Units: Undefined
Type: Grayscale
Base type: Palette
Endianess: Undefined
Colorspace: Gray
Depth: 8-bit
Channel depth:
Gray: 8-bit
Channel statistics:
Pixels: 9604
Gray:
min: 0 (0)
max: 255 (1)
mean: 50.8168 (0.199282)
standard deviation: 101.642 (0.398595)
kurtosis: 0.266168
skewness: 1.5053
entropy: 0.342397
Colors: 15
Histogram:
Rendering intent: Undefined
Gamma: 0.454545
Alpha color: grey74
Background color: white
Border color: srgb(223,223,223)
Transparent color: none
Interlace: None
Intensity: Undefined
Compose: Over
Page geometry: 98x98+0+0
Dispose: Undefined
Iterations: 0
Compression: JPEG
Quality: 95
Orientation: Undefined
Properties:
date:create: 2017-03-26T04:16:29+02:00
date:modify: 2017-03-26T04:16:27+02:00
jpeg:colorspace: 1
jpeg:sampling-factor: 1x1
signature: 9fe876a00b9fc159451b5fb9a650bde75189914dbcb22621c132d3138f42803d
Artifacts:
verbose: true
Tainted: False
Filesize: 2.41KB
Number pixels: 9.6K
User time: 0.000u
Elapsed time: 0:01.000
Version: ImageMagick 7.0.4-9 Q16 x86_64 2017-02-20 http://www.imagemagick.org

Re: cant get morpholgy of this image ?

Posted: 2017-03-25T19:20:27-07:00
by diegomage
Image: kLdPK.jpg
Format: JPEG (Joint Photographic Experts Group JFIF format)
Mime type: image/jpeg
Class: PseudoClass
Geometry: 98x98+0+0
Units: Undefined
Type: Grayscale
Base type: Palette
Endianess: Undefined
Colorspace: Gray
Depth: 8-bit
Channel depth:
Gray: 8-bit
Channel statistics:
Pixels: 9604
Gray:
min: 0 (0)
max: 255 (1)
mean: 50.8168 (0.199282)
standard deviation: 101.642 (0.398595)
kurtosis: 0.266168
skewness: 1.5053
entropy: 0.342397
Colors: 15
Histogram:
7204: ( 0, 0, 0) #000000 gray(0)
251: ( 1, 1, 1) #010101 gray(1)
145: ( 2, 2, 2) #020202 gray(2)
56: ( 3, 3, 3) #030303 gray(3)
21: ( 4, 4, 4) #040404 gray(4)
11: ( 5, 5, 5) #050505 gray(5)
1: ( 6, 6, 6) #060606 gray(6)
1: ( 7, 7, 7) #070707 gray(7)
2: (248,248,248) #F8F8F8 gray(248)
9: (250,250,250) #FAFAFA gray(250)
29: (251,251,251) #FBFBFB gray(251)
50: (252,252,252) #FCFCFC gray(252)
131: (253,253,253) #FDFDFD gray(253)
299: (254,254,254) #FEFEFE gray(254)
1394: (255,255,255) #FFFFFF gray(255)
Colormap entries: 256
Colormap:
0: ( 0, 0, 0,255) #000000FF graya(0,1)
1: ( 1, 1, 1,255) #010101FF graya(1,1)
2: ( 2, 2, 2,255) #020202FF graya(2,1)
3: ( 3, 3, 3,255) #030303FF graya(3,1)
4: ( 4, 4, 4,255) #040404FF graya(4,1)
5: ( 5, 5, 5,255) #050505FF graya(5,1)
6: ( 6, 6, 6,255) #060606FF graya(6,1)
7: ( 7, 7, 7,255) #070707FF graya(7,1)
8: ( 8, 8, 8,255) #080808FF graya(8,1)
9: ( 9, 9, 9,255) #090909FF graya(9,1)
10: ( 10, 10, 10,255) #0A0A0AFF graya(10,1)
11: ( 11, 11, 11,255) #0B0B0BFF graya(11,1)
12: ( 12, 12, 12,255) #0C0C0CFF graya(12,1)
13: ( 13, 13, 13,255) #0D0D0DFF graya(13,1)
14: ( 14, 14, 14,255) #0E0E0EFF graya(14,1)
15: ( 15, 15, 15,255) #0F0F0FFF graya(15,1)
16: ( 16, 16, 16,255) #101010FF graya(16,1)
17: ( 17, 17, 17,255) #111111FF graya(17,1)
18: ( 18, 18, 18,255) #121212FF graya(18,1)
19: ( 19, 19, 19,255) #131313FF graya(19,1)
20: ( 20, 20, 20,255) #141414FF graya(20,1)
21: ( 21, 21, 21,255) #151515FF graya(21,1)
22: ( 22, 22, 22,255) #161616FF graya(22,1)
23: ( 23, 23, 23,255) #171717FF graya(23,1)
24: ( 24, 24, 24,255) #181818FF graya(24,1)
25: ( 25, 25, 25,255) #191919FF graya(25,1)
26: ( 26, 26, 26,255) #1A1A1AFF graya(26,1)
27: ( 27, 27, 27,255) #1B1B1BFF graya(27,1)
28: ( 28, 28, 28,255) #1C1C1CFF graya(28,1)
29: ( 29, 29, 29,255) #1D1D1DFF graya(29,1)
30: ( 30, 30, 30,255) #1E1E1EFF graya(30,1)
31: ( 31, 31, 31,255) #1F1F1FFF graya(31,1)
32: ( 32, 32, 32,255) #202020FF graya(32,1)
33: ( 33, 33, 33,255) #212121FF graya(33,1)
34: ( 34, 34, 34,255) #222222FF graya(34,1)
35: ( 35, 35, 35,255) #232323FF graya(35,1)
36: ( 36, 36, 36,255) #242424FF graya(36,1)
37: ( 37, 37, 37,255) #252525FF graya(37,1)
38: ( 38, 38, 38,255) #262626FF graya(38,1)
39: ( 39, 39, 39,255) #272727FF graya(39,1)
40: ( 40, 40, 40,255) #282828FF graya(40,1)
41: ( 41, 41, 41,255) #292929FF graya(41,1)
42: ( 42, 42, 42,255) #2A2A2AFF graya(42,1)
43: ( 43, 43, 43,255) #2B2B2BFF graya(43,1)
44: ( 44, 44, 44,255) #2C2C2CFF graya(44,1)
45: ( 45, 45, 45,255) #2D2D2DFF graya(45,1)
46: ( 46, 46, 46,255) #2E2E2EFF graya(46,1)
47: ( 47, 47, 47,255) #2F2F2FFF graya(47,1)
48: ( 48, 48, 48,255) #303030FF graya(48,1)
49: ( 49, 49, 49,255) #313131FF graya(49,1)
50: ( 50, 50, 50,255) #323232FF graya(50,1)
51: ( 51, 51, 51,255) #333333FF graya(51,1)
52: ( 52, 52, 52,255) #343434FF graya(52,1)
53: ( 53, 53, 53,255) #353535FF graya(53,1)
54: ( 54, 54, 54,255) #363636FF graya(54,1)
55: ( 55, 55, 55,255) #373737FF graya(55,1)
56: ( 56, 56, 56,255) #383838FF graya(56,1)
57: ( 57, 57, 57,255) #393939FF graya(57,1)
58: ( 58, 58, 58,255) #3A3A3AFF graya(58,1)
59: ( 59, 59, 59,255) #3B3B3BFF graya(59,1)
60: ( 60, 60, 60,255) #3C3C3CFF graya(60,1)
61: ( 61, 61, 61,255) #3D3D3DFF graya(61,1)
62: ( 62, 62, 62,255) #3E3E3EFF graya(62,1)
63: ( 63, 63, 63,255) #3F3F3FFF graya(63,1)
64: ( 64, 64, 64,255) #404040FF graya(64,1)
65: ( 65, 65, 65,255) #414141FF graya(65,1)
66: ( 66, 66, 66,255) #424242FF graya(66,1)
67: ( 67, 67, 67,255) #434343FF graya(67,1)
68: ( 68, 68, 68,255) #444444FF graya(68,1)
69: ( 69, 69, 69,255) #454545FF graya(69,1)
70: ( 70, 70, 70,255) #464646FF graya(70,1)
71: ( 71, 71, 71,255) #474747FF graya(71,1)
72: ( 72, 72, 72,255) #484848FF graya(72,1)
73: ( 73, 73, 73,255) #494949FF graya(73,1)
74: ( 74, 74, 74,255) #4A4A4AFF graya(74,1)
75: ( 75, 75, 75,255) #4B4B4BFF graya(75,1)
76: ( 76, 76, 76,255) #4C4C4CFF graya(76,1)
77: ( 77, 77, 77,255) #4D4D4DFF graya(77,1)
78: ( 78, 78, 78,255) #4E4E4EFF graya(78,1)
79: ( 79, 79, 79,255) #4F4F4FFF graya(79,1)
80: ( 80, 80, 80,255) #505050FF graya(80,1)
81: ( 81, 81, 81,255) #515151FF graya(81,1)
82: ( 82, 82, 82,255) #525252FF graya(82,1)
83: ( 83, 83, 83,255) #535353FF graya(83,1)
84: ( 84, 84, 84,255) #545454FF graya(84,1)
85: ( 85, 85, 85,255) #555555FF graya(85,1)
86: ( 86, 86, 86,255) #565656FF graya(86,1)
87: ( 87, 87, 87,255) #575757FF graya(87,1)
88: ( 88, 88, 88,255) #585858FF graya(88,1)
89: ( 89, 89, 89,255) #595959FF graya(89,1)
90: ( 90, 90, 90,255) #5A5A5AFF graya(90,1)
91: ( 91, 91, 91,255) #5B5B5BFF graya(91,1)
92: ( 92, 92, 92,255) #5C5C5CFF graya(92,1)
93: ( 93, 93, 93,255) #5D5D5DFF graya(93,1)
94: ( 94, 94, 94,255) #5E5E5EFF graya(94,1)
95: ( 95, 95, 95,255) #5F5F5FFF graya(95,1)
96: ( 96, 96, 96,255) #606060FF graya(96,1)
97: ( 97, 97, 97,255) #616161FF graya(97,1)
98: ( 98, 98, 98,255) #626262FF graya(98,1)
99: ( 99, 99, 99,255) #636363FF graya(99,1)
100: (100,100,100,255) #646464FF graya(100,1)
101: (101,101,101,255) #656565FF graya(101,1)
102: (102,102,102,255) #666666FF graya(102,1)
103: (103,103,103,255) #676767FF graya(103,1)
104: (104,104,104,255) #686868FF graya(104,1)
105: (105,105,105,255) #696969FF graya(105,1)
106: (106,106,106,255) #6A6A6AFF graya(106,1)
107: (107,107,107,255) #6B6B6BFF graya(107,1)
108: (108,108,108,255) #6C6C6CFF graya(108,1)
109: (109,109,109,255) #6D6D6DFF graya(109,1)
110: (110,110,110,255) #6E6E6EFF graya(110,1)
111: (111,111,111,255) #6F6F6FFF graya(111,1)
112: (112,112,112,255) #707070FF graya(112,1)
113: (113,113,113,255) #717171FF graya(113,1)
114: (114,114,114,255) #727272FF graya(114,1)
115: (115,115,115,255) #737373FF graya(115,1)
116: (116,116,116,255) #747474FF graya(116,1)
117: (117,117,117,255) #757575FF graya(117,1)
118: (118,118,118,255) #767676FF graya(118,1)
119: (119,119,119,255) #777777FF graya(119,1)
120: (120,120,120,255) #787878FF graya(120,1)
121: (121,121,121,255) #797979FF graya(121,1)
122: (122,122,122,255) #7A7A7AFF graya(122,1)
123: (123,123,123,255) #7B7B7BFF graya(123,1)
124: (124,124,124,255) #7C7C7CFF graya(124,1)
125: (125,125,125,255) #7D7D7DFF graya(125,1)
126: (126,126,126,255) #7E7E7EFF graya(126,1)
127: (127,127,127,255) #7F7F7FFF graya(127,1)
128: (128,128,128,255) #808080FF graya(128,1)
129: (129,129,129,255) #818181FF graya(129,1)
130: (130,130,130,255) #828282FF graya(130,1)
131: (131,131,131,255) #838383FF graya(131,1)
132: (132,132,132,255) #848484FF graya(132,1)
133: (133,133,133,255) #858585FF graya(133,1)
134: (134,134,134,255) #868686FF graya(134,1)
135: (135,135,135,255) #878787FF graya(135,1)
136: (136,136,136,255) #888888FF graya(136,1)
137: (137,137,137,255) #898989FF graya(137,1)
138: (138,138,138,255) #8A8A8AFF graya(138,1)
139: (139,139,139,255) #8B8B8BFF graya(139,1)
140: (140,140,140,255) #8C8C8CFF graya(140,1)
141: (141,141,141,255) #8D8D8DFF graya(141,1)
142: (142,142,142,255) #8E8E8EFF graya(142,1)
143: (143,143,143,255) #8F8F8FFF graya(143,1)
144: (144,144,144,255) #909090FF graya(144,1)
145: (145,145,145,255) #919191FF graya(145,1)
146: (146,146,146,255) #929292FF graya(146,1)
147: (147,147,147,255) #939393FF graya(147,1)
148: (148,148,148,255) #949494FF graya(148,1)
149: (149,149,149,255) #959595FF graya(149,1)
150: (150,150,150,255) #969696FF graya(150,1)
151: (151,151,151,255) #979797FF graya(151,1)
152: (152,152,152,255) #989898FF graya(152,1)
153: (153,153,153,255) #999999FF graya(153,1)
154: (154,154,154,255) #9A9A9AFF graya(154,1)
155: (155,155,155,255) #9B9B9BFF graya(155,1)
156: (156,156,156,255) #9C9C9CFF graya(156,1)
157: (157,157,157,255) #9D9D9DFF graya(157,1)
158: (158,158,158,255) #9E9E9EFF graya(158,1)
159: (159,159,159,255) #9F9F9FFF graya(159,1)
160: (160,160,160,255) #A0A0A0FF graya(160,1)
161: (161,161,161,255) #A1A1A1FF graya(161,1)
162: (162,162,162,255) #A2A2A2FF graya(162,1)
163: (163,163,163,255) #A3A3A3FF graya(163,1)
164: (164,164,164,255) #A4A4A4FF graya(164,1)
165: (165,165,165,255) #A5A5A5FF graya(165,1)
166: (166,166,166,255) #A6A6A6FF graya(166,1)
167: (167,167,167,255) #A7A7A7FF graya(167,1)
168: (168,168,168,255) #A8A8A8FF graya(168,1)
169: (169,169,169,255) #A9A9A9FF graya(169,1)
170: (170,170,170,255) #AAAAAAFF graya(170,1)
171: (171,171,171,255) #ABABABFF graya(171,1)
172: (172,172,172,255) #ACACACFF graya(172,1)
173: (173,173,173,255) #ADADADFF graya(173,1)
174: (174,174,174,255) #AEAEAEFF graya(174,1)
175: (175,175,175,255) #AFAFAFFF graya(175,1)
176: (176,176,176,255) #B0B0B0FF graya(176,1)
177: (177,177,177,255) #B1B1B1FF graya(177,1)
178: (178,178,178,255) #B2B2B2FF graya(178,1)
179: (179,179,179,255) #B3B3B3FF graya(179,1)
180: (180,180,180,255) #B4B4B4FF graya(180,1)
181: (181,181,181,255) #B5B5B5FF graya(181,1)
182: (182,182,182,255) #B6B6B6FF graya(182,1)
183: (183,183,183,255) #B7B7B7FF graya(183,1)
184: (184,184,184,255) #B8B8B8FF graya(184,1)
185: (185,185,185,255) #B9B9B9FF graya(185,1)
186: (186,186,186,255) #BABABAFF graya(186,1)
187: (187,187,187,255) #BBBBBBFF graya(187,1)
188: (188,188,188,255) #BCBCBCFF graya(188,1)
189: (189,189,189,255) #BDBDBDFF graya(189,1)
190: (190,190,190,255) #BEBEBEFF graya(190,1)
191: (191,191,191,255) #BFBFBFFF graya(191,1)
192: (192,192,192,255) #C0C0C0FF graya(192,1)
193: (193,193,193,255) #C1C1C1FF graya(193,1)
194: (194,194,194,255) #C2C2C2FF graya(194,1)
195: (195,195,195,255) #C3C3C3FF graya(195,1)
196: (196,196,196,255) #C4C4C4FF graya(196,1)
197: (197,197,197,255) #C5C5C5FF graya(197,1)
198: (198,198,198,255) #C6C6C6FF graya(198,1)
199: (199,199,199,255) #C7C7C7FF graya(199,1)
200: (200,200,200,255) #C8C8C8FF graya(200,1)
201: (201,201,201,255) #C9C9C9FF graya(201,1)
202: (202,202,202,255) #CACACAFF graya(202,1)
203: (203,203,203,255) #CBCBCBFF graya(203,1)
204: (204,204,204,255) #CCCCCCFF graya(204,1)
205: (205,205,205,255) #CDCDCDFF graya(205,1)
206: (206,206,206,255) #CECECEFF graya(206,1)
207: (207,207,207,255) #CFCFCFFF graya(207,1)
208: (208,208,208,255) #D0D0D0FF graya(208,1)
209: (209,209,209,255) #D1D1D1FF graya(209,1)
210: (210,210,210,255) #D2D2D2FF graya(210,1)
211: (211,211,211,255) #D3D3D3FF graya(211,1)
212: (212,212,212,255) #D4D4D4FF graya(212,1)
213: (213,213,213,255) #D5D5D5FF graya(213,1)
214: (214,214,214,255) #D6D6D6FF graya(214,1)
215: (215,215,215,255) #D7D7D7FF graya(215,1)
216: (216,216,216,255) #D8D8D8FF graya(216,1)
217: (217,217,217,255) #D9D9D9FF graya(217,1)
218: (218,218,218,255) #DADADAFF graya(218,1)
219: (219,219,219,255) #DBDBDBFF graya(219,1)
220: (220,220,220,255) #DCDCDCFF graya(220,1)
221: (221,221,221,255) #DDDDDDFF graya(221,1)
222: (222,222,222,255) #DEDEDEFF graya(222,1)
223: (223,223,223,255) #DFDFDFFF graya(223,1)
224: (224,224,224,255) #E0E0E0FF graya(224,1)
225: (225,225,225,255) #E1E1E1FF graya(225,1)
226: (226,226,226,255) #E2E2E2FF graya(226,1)
227: (227,227,227,255) #E3E3E3FF graya(227,1)
228: (228,228,228,255) #E4E4E4FF graya(228,1)
229: (229,229,229,255) #E5E5E5FF graya(229,1)
230: (230,230,230,255) #E6E6E6FF graya(230,1)
231: (231,231,231,255) #E7E7E7FF graya(231,1)
232: (232,232,232,255) #E8E8E8FF graya(232,1)
233: (233,233,233,255) #E9E9E9FF graya(233,1)
234: (234,234,234,255) #EAEAEAFF graya(234,1)
235: (235,235,235,255) #EBEBEBFF graya(235,1)
236: (236,236,236,255) #ECECECFF graya(236,1)
237: (237,237,237,255) #EDEDEDFF graya(237,1)
238: (238,238,238,255) #EEEEEEFF graya(238,1)
239: (239,239,239,255) #EFEFEFFF graya(239,1)
240: (240,240,240,255) #F0F0F0FF graya(240,1)
241: (241,241,241,255) #F1F1F1FF graya(241,1)
242: (242,242,242,255) #F2F2F2FF graya(242,1)
243: (243,243,243,255) #F3F3F3FF graya(243,1)
244: (244,244,244,255) #F4F4F4FF graya(244,1)
245: (245,245,245,255) #F5F5F5FF graya(245,1)
246: (246,246,246,255) #F6F6F6FF graya(246,1)
247: (247,247,247,255) #F7F7F7FF graya(247,1)
248: (248,248,248,255) #F8F8F8FF graya(248,1)
249: (249,249,249,255) #F9F9F9FF graya(249,1)
250: (250,250,250,255) #FAFAFAFF graya(250,1)
251: (251,251,251,255) #FBFBFBFF graya(251,1)
252: (252,252,252,255) #FCFCFCFF graya(252,1)
253: (253,253,253,255) #FDFDFDFF graya(253,1)
254: (254,254,254,255) #FEFEFEFF graya(254,1)
255: (255,255,255,255) #FFFFFFFF graya(255,1)
Rendering intent: Undefined
Gamma: 0.454545
Alpha color: grey74
Background color: white
Border color: srgb(223,223,223)
Transparent color: none
Interlace: None
Intensity: Undefined
Compose: Over
Page geometry: 98x98+0+0
Dispose: Undefined
Iterations: 0
Compression: JPEG
Quality: 95
Orientation: Undefined
Properties:
date:create: 2017-03-26T04:16:29+02:00
date:modify: 2017-03-26T04:16:27+02:00
jpeg:colorspace: 1
jpeg:sampling-factor: 1x1
signature: 9fe876a00b9fc159451b5fb9a650bde75189914dbcb22621c132d3138f42803d
Artifacts:
verbose: true
Tainted: False
Filesize: 2.41KB
Number pixels: 9.6K
User time: 0.000u
Elapsed time: 0:01.000
Version: ImageMagick 7.0.4-9 Q16 x86_64 2017-02-20 http://www.imagemagick.org

Re: cant get morpholgy of this image ?

Posted: 2017-03-25T19:21:15-07:00
by fmw42
Still not correct. See my listing above. Note that the type is grayscale and not binary. Also see all the graylevels in the histogram. Morphology works primarily on binary images. So you need to threshold this image.

Re: cant get morpholgy of this image ?

Posted: 2017-03-25T19:21:39-07:00
by diegomage
how convert this to binary ??

Re: cant get morpholgy of this image ?

Posted: 2017-03-25T19:22:32-07:00
by fmw42
Still not correct. See my listing above. Note that the type is grayscale and not binary. Also see all the graylevels in the histogram. Morphology works primarily on binary images. So you need to threshold this image.

Re: cant get morpholgy of this image ?

Posted: 2017-03-25T19:23:11-07:00
by fmw42
diegomage wrote: 2017-03-25T19:21:39-07:00 how convert this to binary ??
Look at my command line. It includes -threshold 50%.

Re: cant get morpholgy of this image ?

Posted: 2017-03-25T19:25:03-07:00
by fmw42