comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Radon forward projection problem
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Radon forward projection problem [message #60142 is a reply to message #60021] Mon, 28 April 2008 06:33 Go to previous message
mmiller3 is currently offline  mmiller3
Messages: 81
Registered: January 2002
Member
>>>> > "Wox" == Wox <nomail@hotmail.com> writes:

> Ah, so I'm using MLEM :-). However, my initial problem
> still stands. What should one do when FP(v) is zero in
> some pixels, that is in formula

> v'=v * BP(s0/FP(v))/BP(s1)

This is a common problem in numerical codes. When dividing, I
usually pick a small threshold value, epsilon, and ensure that my
value is greater than epsilon before dividing:

IDL> x=findgen(50)
IDL> y = x
IDL> epsilon = 10
IDL> y[where(x le epsilon)] = epsilon
IDL> plot, 1/x
% Program caused arithmetic error: Floating divide by 0
IDL> plot, 1/y

Or something along those lines.

Mike

--
Michael A. Miller mmiller3@iupui.edu
Imaging Sciences, Department of Radiology, IU School of Medicine
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Some AVI bother...
Next Topic: idlanroigroup masking weirdness

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 23:49:52 PDT 2025

Total time taken to generate the page: 0.55966 seconds