• 2021-04-14
    已知二值医学图像IA=[1 1 1 0 0; 1 1 0 0 0; 0 1 0 1 0; 1 0 1 0 0; 1 0 0 1 0],结构元素IB=[0 1 0; 0 1 0; 0 1 0], 结构元素IB对应的坐标是[(-1,-1)(-1,0)(-1,1):(0,-1)(0,0)(0,1);(1,-1)(1,0)(1,1)],则用结构元素IB对图像IA腐蚀后的图像IC是()。
  • [0 0 0 0 0; 0 1 0 0 0; 0 0 0 0 0; 0 0 0 0 0; 0 0 0 0 0]

    举一反三

    内容

    • 0

      编写程序,创建下列10*10的数组,数组边界全为1,里面全为0。 [[1 1 1 1 1 1 1 1 1 1] [1 0 0 0 0 0 0 0 0 1] [1 0 0 0 0 0 0 0 0 1] [1 0 0 0 0 0 0 0 0 1] [1 0 0 0 0 0 0 0 0 1] [1 0 0 0 0 0 0 0 0 1] [1 0 0 0 0 0 0 0 0 1] [1 0 0 0 0 0 0 0 0 1] [1 0 0 0 0 0 0 0 0 1] [1 1 1 1 1 1 1 1 1 1]]

    • 1

      已知逻辑函数式为 F = A B + B C,可列出真值表如表2中的是( ) A B C ① ② ③ ④ 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1 0 0 0 0 1 0 1 0 0 1 1 0 1 1 0 1 0 0 0 0 0 1 0 0 0 0 0 1 1 0 1 1

    • 2

      对信码1000100100001000011000011进行HDB3编码,结果可能是( )。 A: -1 0 0 0 +1 0 0 -1 0 0 0 -V +1 0 0 0 +V -1 +1 -B 0 0 -V +1 -1 B: +1 0 0 0 -1 0 0 +1 0 0 0 +V -1 0 0 0 -V +1 -1 +B 0 0 +V -1 +1 C: +1 0 0 0 -1 0 0 +1 0 0 0 +1 -1 0 0 0 -1 +1 -1 +1 0 0 +1 -1 +1 D: -1 0 0 0 +1 0 0 -1 0 0 0 +V +1 0 0 0 +V -1 +1 +B 0 0 -V +1 -1

    • 3

      编写程序,创建下列10*10的数组,数组边界全为1,里面全为0。 [[1 1 1 1 1 1 1 1 1 1] [1 0 0 0 0 0 0 0 0 1] [1 0 0 0 0 0 0 0 0 1] [1 0 0 0 0 0 0 0 0 1] [1 0 0 0 0 0 0 0 0 1] [1 0 0 0 0 0 0 0 0 1] [1 0 0 0 0 0 0 0 0 1] [1 0 0 0 0 0 0 0 0 1] [1 0 0 0 0 0 0 0 0 1] [1 1 1 1 1 1 1 1 1 1]] 提示:可以先创建全为0或者全为1的数组,再通过索引和切片机制进行修改

    • 4

      1 1 1 1 1 0 1 1 1 1 0 0 1 1 1 0 0 0 1 1 0 0 0 0 1