The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: 2D image - applying a filter bank to patches
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Francisco Seixas

Posts: 6
Registered: 11/23/12
2D image - applying a filter bank to patches
Posted: May 17, 2013 12:34 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi there,

I have an image that I'd like to convolve with a filter bank of 38 filters. However, for every pixel I must apply the filters to a patch surrouding said pixel, I can't apply the filters to the whole image at once. This is because I need to normalize (zero mean and unit standard deviation) each patch before applying the filter bank.

This means that, for a 512x512 image, I'd have 512*512*38 convolutions - that's almost 10^7. Each pixel is taking 200ms to process, so we're looking at over 14 hours for a single image! What can I do better?

I'm currently generating the patches manually (no blockproc) and applying the filters using imfilter. The filters are 31x31 pixels and the patches are 71x71 (plus padding to get correct filter responses at the edges).


Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.