| MATLAB Central > MATLAB Newsreader > Difference between pixel values and centre pixel i... |
|
|
|
Subject: Difference between pixel values and centre pixel in a local neighbourhood From: K M Date: 20 Jul, 2012 10:55:17 Message: 1 of 13 |
|
Hi, |
|
Subject: Difference between pixel values and centre pixel in a local neighbourhood From: ImageAnalyst Date: 21 Jul, 2012 01:40:13 Message: 2 of 13 |
|
That's a linear filter, not a non-linear filter. Anyway, you don't need all that complicated stuff. All you need is conv2(). |
|
Subject: Difference between pixel values and centre pixel in a local neighbourhood From: K M Date: 21 Jul, 2012 18:08:16 Message: 3 of 13 |
|
ImageAnalyst <imageanalyst@mailinator.com> wrote in message <6023a68e-9bec-4b24-adef-add7cc9d0da9@googlegroups.com>... |
|
Subject: Difference between pixel values and centre pixel in a local neighbourhood From: ImageAnalyst Date: 21 Jul, 2012 22:48:21 Message: 4 of 13 |
|
Since you're not using sliding blocks but blocks that "jump" in jumps of the window size, you'd have to use blockproc(). Be sure that your function in blockproc returns a 3x3 array, not a single number of else your output image will be 1/3 as big as your input image. If you still can't figure it out, write back. |
|
Subject: Difference between pixel values and centre pixel in a local neighbourhood From: K M Date: 23 Jul, 2012 16:20:24 Message: 5 of 13 |
|
ImageAnalyst <imageanalyst@mailinator.com> wrote in message <f4091145-322f-4184-8bb8-526f5003dbec@googlegroups.com>... |
|
Subject: Difference between pixel values and centre pixel in a local neighbourhood From: K M Date: 23 Jul, 2012 17:08:09 Message: 6 of 13 |
|
"K M" wrote in message <jujtk8$eat$1@newscl01ah.mathworks.com>... |
|
Subject: Difference between pixel values and centre pixel in a local neighbourhood From: K M Date: 23 Jul, 2012 20:20:10 Message: 7 of 13 |
|
ImageAnalyst <imageanalyst@mailinator.com> wrote in message <f4091145-322f-4184-8bb8-526f5003dbec@googlegroups.com>... |
|
Subject: Difference between pixel values and centre pixel in a local neighbourhood From: Bruno Luong Date: 23 Jul, 2012 21:52:09 Message: 8 of 13 |
|
Solution: |
|
Subject: Difference between pixel values and centre pixel in a local neighbourhood From: ImageAnalyst Date: 24 Jul, 2012 00:38:21 Message: 9 of 13 |
|
Well you didn't use blockproc correctly. If you'd like one of my demos using it, let me know. |
|
Subject: Difference between pixel values and centre pixel in a local neighbourhood From: Bruno Luong Date: 24 Jul, 2012 08:01:13 Message: 10 of 13 |
|
The code I post earlier is for block. |
|
Subject: Difference between pixel values and centre pixel in a local neighbourhood From: K M Date: 24 Jul, 2012 13:49:09 Message: 11 of 13 |
|
ImageAnalyst <imageanalyst@mailinator.com> wrote in message <63272f32-03e1-455f-aae3-200b8771bec3@googlegroups.com>... |
|
Subject: Difference between pixel values and centre pixel in a local neighbourhood From: Bruno Luong Date: 24 Jul, 2012 17:55:11 Message: 12 of 13 |
|
"K M" wrote in message <jum94l$i4k$1@newscl01ah.mathworks.com>... |
|
Subject: Difference between pixel values and centre pixel in a local neighbourhood From: Bruno Luong Date: 25 Jul, 2012 06:58:09 Message: 13 of 13 |
|
"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <jumnhv$j5o$1@newscl01ah.mathworks.com>... |
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.
| Tag Activity for This Thread | ||
|---|---|---|
| Tag | Applied By | Date/Time |
| nlfilter | K M | 20 Jul, 2012 06:59:19 |
| local operations | K M | 20 Jul, 2012 06:59:19 |
