Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

感觉很需要ncnn::Mat 的resize函数 #62

Closed
ElegantGod opened this issue Jul 28, 2017 · 3 comments
Closed

感觉很需要ncnn::Mat 的resize函数 #62

ElegantGod opened this issue Jul 28, 2017 · 3 comments

Comments

@ElegantGod
Copy link

缺少ncnn::Mat resize()函数,发现很不方便,每次使用copy_cut_border()取roi后,还要转pixel形式后再做resize和substract_mean_normalize
不知道是不是我用的不对

@nihui
Copy link
Member

nihui commented Aug 1, 2017

在原图上取 roi,然后 Mat::from_pixels_resize

@ElegantGod
Copy link
Author

我觉得这样会导致重复的做substract_mean_normalize(mean_vals, norm_vals),比如做图像金字塔;还有个问题,float和uint8分别作resize,时间大概是几倍的关系呢

@nihui
Copy link
Member

nihui commented Aug 23, 2017

613028a
后续会优化下,然后做个 resize layer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants