Fast concolution of image and ellipse of varid sizes

2 ビュー (過去 30 日間)
Happy PhD
Happy PhD 2018 年 10 月 29 日
コメント済み: Bruno Luong 2018 年 10 月 29 日
Hi, I'm currently trying to figure out how to make fast convolution between an image (2000x1600 pixels) and a much smaller ellipse mask of different sizes. Im using conv2 fucntion but its taking forever. Surely there must be a more simpler and faster way?
The ellipse might vary between 40-150 pixels in size or in some cases larger up to maybe 600 pixels.
I like to make convolution between the two images (the image and my ellipse mask) and optimize the speed. The image is mostly "zero" and consist of a laser lobe of varid sizes.

回答 (1 件)

Bruno Luong
Bruno Luong 2018 年 10 月 29 日
編集済み: Bruno Luong 2018 年 10 月 29 日
You might try this FEX file.
  1 件のコメント
Bruno Luong
Bruno Luong 2018 年 10 月 29 日
Some possible further optimization: If you convolve the same image with different ellipses or the opposite: different image with the same set of ellipses the FFT of what ever image that is used multiple time can be computed once.

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

製品


リリース

R2015b

Community Treasure Hunt

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

Start Hunting!

Translated by