how to run "detectMSERFeatures" on a GPU or how to accelerate it?

3 ビュー (過去 30 日間)
noam Y
noam Y 2017 年 11 月 3 日
コメント済み: Joss Knight 2017 年 11 月 5 日
hello, I'm trying to make my code (which is based on the detectMSERFeatures function and I call it a few times every frame) run faster and for that, I thought I should run it on a GPU. correct me if I'm wrong and if any of you have suggestions be my guest. thanks in advance :).

採用された回答

Joss Knight
Joss Knight 2017 年 11 月 4 日
Why don't you inspect the function gpuArray/detectHarrisFeatures which is implemented in MATLAB code. It should give you a few ideas.
edit gpuArray/detectHarrisFeatures
With properly vectorized code there's often very little customisation needed. As you can see, detectHarrisFeatures shares most of its implementation with the CPU version.
  2 件のコメント
noam Y
noam Y 2017 年 11 月 4 日
編集済み: noam Y 2017 年 11 月 4 日
if I'll use gpuArray all operations performed on the array would be done by the GPU? also what does "detectHarrisFeatures" has to do with "detectMSERFeatures"?
Joss Knight
Joss Knight 2017 年 11 月 5 日
Yes. And ... well ... they're both types of image feature detection? I'll admit the underlying algorithms aren't the same but the point is to give you some examples of MATLAB code that run successfully and efficiently on the GPU, in an area you're familiar with (presumably).

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGPU Computing についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by