未定义的运算符' *'对于' struct'

时间:2016-07-20 04:14:35

标签: matlab

MATLAB: VSO'是原始图像的基于图形的视觉显着图(gbvs),并且' vsd'是基于图形的视觉显着图(gbvs)的同一图像的模糊版本。

          vso=gbvs('../images/I03.bmp'); 
          vsd=gbvs('../images/i03_17_5.bmp'); 

试图找出这两个图像之间的相似性图 -

          Svs=(2*vso*vsd+cvs)/(vso^2+vsd^2+cvs); 

其中cvs是常数,cvs = 1.27

错误是:未定义的运算符' *'对于' struct'

类型的输入参数

1 个答案:

答案 0 :(得分:0)

VSO = gbvs(' ../图像/ I03.bmp&#39)

vso =

         master_map: [24x32 double]
 master_map_resized: [384x512 double]
top_level_feat_maps: {[24x32 double]  [24x32 double]  [24x32 double]}
          map_types: {'dklcolor'  'intensity'  'orientation'}
      intermed_maps: [1x1 struct]
        rawfeatmaps: [1x1 struct]
         paramsUsed: [1x1 struct]
  
    

VSD = gbvs(' ../图像/ i03_17_5.bmp&#39)

  

vsd =

         master_map: [24x32 double]
 master_map_resized: [384x512 double]
top_level_feat_maps: {[24x32 double]  [24x32 double]  [24x32 double]}
          map_types: {'dklcolor'  'intensity'  'orientation'}
      intermed_maps: [1x1 struct]
        rawfeatmaps: [1x1 struct]
         paramsUsed: [1x1 struct]

这些是变量struct type ...