Contribution from all pixels to 1 pixel

1 visualizzazione (ultimi 30 giorni)
Jim O'Doherty
Jim O'Doherty il 2 Ago 2012
Hello all,
I've got a series of 2D image slices, with each pixel being a measure of intensity. I'm looking to work out the contribution from all pixels to each individual pixel using a function relating the intensity of each pixel to the distance from the contributing pixel. Would anyone know a fast efficient way to do this? I've tried a function using cumsum but its not going to plan
Thanks
Jim

Risposte (1)

Image Analyst
Image Analyst il 2 Ago 2012
Why do you think that all other pixels have any influence on one single pixel? Do you know your image is , say, blurred with a large point spread function? If so, have you tried inverse filtering or wiener filtering or richardson-lucy deconvolution?
  12 Commenti
Walter Roberson
Walter Roberson il 6 Ago 2012
kernels specify a pattern of multiplications and additions, that are to be used in a "sliding window" manner.
When the distances are sqrt(2) do you want to add the full voxel value to the central voxel, or do you want to add the value divided by sqrt(2) ?
If you want to add the full voxel value, then your kernel would, I think, be simply ones(3,3,3)
Jim O'Doherty
Jim O'Doherty il 8 Ago 2012
Modificato: Jim O'Doherty il 8 Ago 2012
OK thanks, I'm getting there as I now understand your tip, as well as my problem a bit better. I think my situation is a little bit more complex (although hopefully I'm wrong).
So for my "kernel" (or however else I can do this), my distances to each nearest neighbour are either 1 unit or sqrt(2) units.
Next for each nearest neighbour voxel, I need to multiply a number by the voxel value (say 3 times the voxel value if it is 1 unit away, and 5 times the voxel value that is sqrt(2) units away). For each voxel in the kernel, the final number needs to be added on to the value of the central voxel.
Would I still be able to structure a kernel to suit this requirement?
Thanks again for your help Jim

Accedi per commentare.

Community Treasure Hunt

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

Start Hunting!

Translated by