Hello Mat

 找回密码
 立即注册
查看: 10270|回复: 4

分类器特征提取

[复制链接]

1323

主题

1551

帖子

0

金钱

管理员

Rank: 9Rank: 9Rank: 9

积分
22647
发表于 2018-12-1 22:31:55 | 显示全部楼层 |阅读模式
对应一组图像而言,图像分类应用较为广泛,如何选取特征很关键:
  1. FeatureVector := []
  2. * Compute features.
  3. gen_sobel_features (Image, FeatureVector, FeatureVector)
  4. * Downscale the image (image pyramid) and compute features.
  5. zoom_image_factor (Image, Zoomed1, 0.5, 0.5, 'constant')
  6. gen_sobel_features (Zoomed1, FeatureVector, FeatureVector)
  7. * Uncomment lines to use further pyramid levels:
  8. zoom_image_factor (Zoomed1, Zoomed2, 0.5, 0.5, 'constant')
  9. * gen_sobel_features (Zoomed2, FeatureVector, FeatureVector)
  10. * zoom_image_factor (Zoomed2, Zoomed3, 0.5, 0.5, 'constant')
  11. * gen_sobel_features (Zoomed3, FeatureVector, FeatureVector)
  12. * zoom_image_factor (Zoomed3, Zoomed4, 0.5, 0.5, 'constant')
  13. * gen_sobel_features (Zoomed4, FeatureVector, FeatureVector)
  14. FeatureVector := real(FeatureVector)
复制代码
gen_sobel_features如下:
  1. * Coocurrence matrix for 0 deg and 90 deg:
  2. cooc_feature_image (Image, Image, 6, 0, Energy, Correlation, Homogeneity, Contrast)
  3. cooc_feature_image (Image, Image, 6, 90, Energy, Correlation, Homogeneity, Contrast)
  4. * Absolute histogram of edge amplitudes:
  5. sobel_amp (Image, EdgeAmplitude, 'sum_abs', 3)
  6. gray_histo_abs (EdgeAmplitude, EdgeAmplitude, 8, AbsoluteHistoEdgeAmplitude)
  7. * Entropy and anisotropy:
  8. * entropy_gray (Image, Image, Entropy, Anisotropy)
  9. * Absolute histogram of gray values:
  10. * gray_histo_abs (Image, Image, 8, AbsoluteHistoImage)
  11. * Add features to feature vector:
  12. FeaturesExtended := [Features,Energy,Correlation,Homogeneity,Contrast]
  13. FeaturesExtended := [FeaturesExtended,AbsoluteHistoEdgeAmplitude]
  14. * FeaturesExtended := [FeaturesExtended,Entropy,Anisotropy]
  15. * FeaturesExtended := [FeaturesExtended,AbsoluteHistoImage]
复制代码
金字塔式的纹理特征求解;

算法QQ  3283892722
群智能算法链接http://halcom.cn/forum.php?mod=forumdisplay&fid=73
回复

使用道具 举报

1

主题

7

帖子

21

金钱

新手上路

Rank: 1

积分
28
发表于 2020-5-5 14:05:33 | 显示全部楼层
太棒了,我想尽快升级会员学习
回复 支持 反对

使用道具 举报

0

主题

16

帖子

1

金钱

新手上路

Rank: 1

积分
8
发表于 2020-8-21 22:33:31 | 显示全部楼层
学习啦,楼主的贴子很有用
回复 支持 反对

使用道具 举报

0

主题

4

帖子

8

金钱

新手上路

Rank: 1

积分
18
发表于 2020-9-29 21:13:23 | 显示全部楼层
太棒了,我想尽快升级会员学习
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Python|Opencv|MATLAB|Halcom.cn ( 蜀ICP备16027072号 )

GMT+8, 2024-11-25 21:56 , Processed in 0.210863 second(s), 24 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表