Contribution from all pixels to 1 pixel

2 次查看(过去 30 天)
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

回答(1 个)

Image Analyst
Image Analyst 2012-8-2
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 个评论
Walter Roberson
Walter Roberson 2012-8-6
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 2012-8-8
编辑:Jim O'Doherty 2012-8-8
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

请先登录,再进行评论。

Community Treasure Hunt

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

Start Hunting!

Translated by