Achieve this paper: Lee C H, Varshney A, Jacobs D W. Mesh saliency[C]//ACM transactions on graphics (TOG). ACM, 2005, 24(3): 659-666.
The main files are in Mesh-Saliency/worksheet, including modles(.ply) and executable files(.m). Others also should be added into matlab’s path.
Firstly, when you want to see the saliency of the model, run prepareDataWS.m for preparing some essential data.
Secondly, run pipelineDemo.m
[saliency, az, el, az2, el2] = meshSaliencyPipeline(Mesh)
saliency
is the saliency value corresponding to each vertex in the input mesh.
az
, el
are the spherical coordinates for the most salient viewpoint.
az2
, el2
are the spherical coordinates for the least salient viewpoint.
Thirdly, run displayResults.m and then you can see the mesh saliency in special spherical coordinates.
Step 1-3 refered to this page
Finally, run maxSaliencyArea.m, you can the most saliency area can be caculated and shown in yellow.
I think details in this paper is enough clear for you to realize it. Just following it!
If there is something you do not understand, feel free to email me at lorrain0407@gmail.com.
一直以来觉得在各大博客平台或者笔记上写一些东西总是零零散散,对于一个账号密码记不住的人来说,写了等于没写,莫名心塞。。。无意发现在github上用jekyll可以搭建博客就小试了一把,体验不错,搭建过程就作为第一篇blog吧。
我用的是Windows系统,读了jekyll官网的安装教程,其实环境配置还是比较简单的呢! 主要步骤有:安装Ruby,安装RubyGems,安装jekyll。
ruby有专门的windows官网,下载安装Ruby+Devkit即可。
安装完成后配置环境变量,在命令提示符中,输入 ruby -v
得到ruby版本号即安装成功。
RubyGems官网下载 zip即可,解压。
cd到RubyGems目录
执行安装 ruby setup.rb
执行下面的语句进行安装 gem install jekyll
发现HyG的博客风格简洁大方,所以在github上fork了他。
fork成功后进入settings进行设置修改仓库名为 你的Github账号名.github.io,然后 Rename;
接着修改博客配置:来到你的仓库,找到_config.yml文件,这是网站的全局配置文件,点击修改,然后编辑_config.yml的内容。
这一步参考这个中对_config.yml的介绍,可以尝试评论系统和网站统计。
修改完成后点击Commit changes 提交保存。
最后进入你的主页,你的个人博客搭建就完成了。
这只是完全fork之后的版本,之后如果有不满意的地方还是会进行改进的呢!