when should I pad image before filtering?
From: lucy (losemind_at_yahoo.com)
Date: 03/25/05
- Next message: frog: "Re: Range Image processing"
- Previous message: Martin Leese: "Re: How to declare " moments"?"
- Next in thread: lucy: "Re: when should I pad image before filtering?"
- Reply: lucy: "Re: when should I pad image before filtering?"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 24 Mar 2005 22:26:57 -0800
I am always confused by the padding for image filtering.
I have an 270x230 "image" and is to be filtered with a 250x250 "filter".
I have made sure that the sum of all filter coefficients sum to be 1.
In Matlab,
sum(sum(filter)) =1.0000,
then I do image filtering:
result=imfilter(image, filter, 'same');
so the result is the also a 270x230 image... since I've used 'same' option,
...
I am not sure if the result is correct or not...
in fact, I even don't understand when a 270x230 image convolved with a
250x250 filter, is the result meaningful at all?
Anybody please give me some enlightment?
And Matlab has so many options: such as "replicate", "symmetric", etc:
X Input array values outside the bounds of the array
are implicitly assumed to have the value X. When no
boundary option is specified, IMFILTER uses X = 0.
'symmetric' Input array values outside the bounds of the array
are computed by mirror-reflecting the array across
the array border.
'replicate' Input array values outside the bounds of the array
are assumed to equal the nearest array border
value.
'circular' Input array values outside the bounds of the array
are computed by implicitly assuming the input array
is periodic.
When do we choose which option?
- Next message: frog: "Re: Range Image processing"
- Previous message: Martin Leese: "Re: How to declare " moments"?"
- Next in thread: lucy: "Re: when should I pad image before filtering?"
- Reply: lucy: "Re: when should I pad image before filtering?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|