필터 지우기
필터 지우기

Contribution from all pixels to 1 pixel

조회 수: 1 (최근 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

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

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

Start Hunting!

Translated by