gen_region_histo

read image(lmage,lena.jpg )
get_image_size(lmage,Width,Height)dev_closewindow()
dev_open_window_fit_size(0,0,Height,Height,-1,-1,WindowHandle)dev display(Image)
rgbl to_gray(lmage,Graylmage)
*计算图像的灰度值分布
gray_histo(Graylmage,Graylmage,AbsoluteHisto,RelativeHisto)*获得灰度直方图
gen_region_histo(Region,RelativeHisto,255,255,1)

gen_region_histo(: Region: Histogram,Row,Column,Scale:)作用:得到直方图。
Region:需要输人的区域。
Histogram:灰度分布
Row:直方图中心行坐标、
Column:直方图中心列坐标。
Scale:直方图比例。

threshold (Image, Regions, 21, 255)
erosion_circle (Regions, RegionErosion, 5)
fill_up_shape (RegionErosion, RegionFillUp, 'area', 1, 3000)
reduce_domain (Image, RegionFillUp, ImageReduced)
derivate_gauss (ImageReduced, DerivGauss, 3, 'xx')
mean_image (DerivGauss, ImageMean, 1, 40)
threshold (ImageMean, Regions1, 0.7, 5)
connection (Regions1, ConnectedRegions)
select_shape (ConnectedRegions, SelectedRegions, 'area', 'and', 250, 1500)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值