| MATLAB Central > MATLAB Newsreader > Image Convolution Equations |
|
|
|
Hi Everyone, I am trying to figure out how to do L = H*B, where L is an image I have, and B will be some created filter. I was told I had to write the convolution equation for each pixel, and then solve Ax = b for A (in this case A corresponds to all H's, X to all B's and b to all L's). However, I only have access to L and B, so I need to get H. I don't know how to loop through the matrix L and create a convolution equation using H and B, when I do not have H. |
|
"Brenda " <bcortez23@gmail.com> wrote in message <hkojdf$d8k$1@fred.mathworks.com>... |
|
Thank you for your comment. However, I would like to elaborate on this problem. I am supposed to write an equation for each pixel as follows: |
|
This is what the convolution function, conv2(), does. Why don't you |
|
"Brenda " <bcortez23@gmail.com> wrote in message <hkpia9$o0t$1@fred.mathworks.com>... |
|
I thin it is really cool I got to know about some of the things you are mentioning, but since this is an instructional problem to solve, my teacher said something like: |
|
Ok, so I tried using the Fourier functions, and I get an error. I first created filter using fspecial of type Gaussian of the same size as L (96x96). So I want L = H*B, and not that I have B, and since I have L, then I want to find H. Therefore, I did: |
|
On Feb 8, 1:56 pm, "B C" <bcorte...@gmail.com> wrote: |
|
Hi there, well, conv2 give one the convolution of 2 matrices, right? But in my case for the convolution L = H*B, I already have the convolution of those matrices - H and B, which is my L. If I create a filter matrix B using fspecial, I want to be able to get H from the L and B I already know, but I don't think conv2 does this. There is the deconv function, but this function results in the deconvolution of some A from B, and in my case, I get this error: |
|
"B C" <bcortez23@gmail.com> wrote in message <hkpnco$5nc$1@fred.mathworks.com>... |
|
"Matt J " <mattjacREMOVE@THISieee.spam> wrote in message <hkpoeh$b5v$1@fred.mathworks.com>... |
|
"B C" <bcortez23@gmail.com> wrote in message <hkpp8m$247$1@fred.mathworks.com>... |
|
"Matt J " <mattjacREMOVE@THISieee.spam> wrote in message <hkpqgl$ipc$1@fred.mathworks.com>... |
|
ImageAnalyst <imageanalyst@mailinator.com> wrote in message <900d5bfc-5f97-416e-be98-686ecf04c367@n33g2000yqb.googlegroups.com>... |
|
"B C" <bcortez23@gmail.com> wrote in message <hkpse0$gd2$1@fred.mathworks.com>... |
|
Ok, great, so I think I am seeing results. I used both deconvreg and deconvvwnr and compared the results, and they seem slightly different, but at least I am getting somewhere. Now, as you saw from my code: |
|
Subject: Image Convolution Equations From: ImageAnalyst Date: 8 Feb, 2010 21:26:50 Message: 17 of 22 |
|
Bc: When you display real arrays, I usually use |
|
ImageAnalyst <imageanalyst@mailinator.com> wrote in message <83161cf8-b358-4627-8640-35fd0bfdaecd@19g2000yql.googlegroups.com>... |
|
"Bc " <bcortez23@gmail.com> wrote in message <hkpup0$c57$1@fred.mathworks.com>... |
|
"Bc " <bcortez23@gmail.com> wrote in message <hkptjh$rhk$1@fred.mathworks.com>... |
|
"Matt J " <mattjacREMOVE@THISieee.spam> wrote in message <hkq27l$k1c$1@fred.mathworks.com>... |
|
"Bc " <bcortez23@gmail.com> wrote in message <hkqjdj$b54$1@fred.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 |
| subsample matrix | Bc | 8 Feb, 2010 16:14:07 |
| merging matrices | Bc | 8 Feb, 2010 16:14:07 |
| convolution | Bc | 8 Feb, 2010 12:44:09 |
| system of equat... | Bc | 8 Feb, 2010 12:44:09 |
| linear algebra | Bc | 8 Feb, 2010 12:44:09 |
| image processing | Bc | 8 Feb, 2010 03:54:05 |
| image convolution | Bc | 8 Feb, 2010 03:54:04 |
Contact us at files@mathworks.com
