Contribution from all pixels to 1 pixel

2 ビュー (過去 30 日間)
Jim O'Doherty
Jim O'Doherty 2012 年 8 月 2 日
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

サインインしてコメントする。

カテゴリ

Help Center および File Exchange3-D Volumetric Image Processing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by