-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shepp Logan Phantom #44
Comments
That would be a fine thing to have. Do you want to turn it into a PR? It's your own code, right, no licensing concerns? |
I can make a PR of that. Wanted to first get some feedback if you think this is the right place for this. I am not entirly sure where the original Matlab code is from as it was used by different people at the institute I did my PHD (not what you wanted to here from me...). But the code is actually only about drawing 10 ellipses and it is currently written uggly anywhere. |
Doing it from the paper is definitely safe. Thanks! |
This URL is the first hit for a google search for "julia shepp logan phantom", so in case it is useful to others who end up here, I want to mention that there are now more versions of the Shepp Logan phantom with methods for making images and sinograms and spectra, with Documenter/Literate examples here: |
This is very nice Jeff, Shepp Logan moved into TestImages.jl what IMHO does not fit so well since it now does not output |
This can be supported very easily by introducing |
its not a matter of supporting it but more a matter of what people that actually use the phantom expect. In the area of tomographic image reconstruction (where most people using this phantom come from) using a floating point number is much more natural. |
The whole philosophy of JuliaImages is to bring people from the raw numerical world into a colorant world. If the algorithm was designed to be generic enough, there should be no difference at all whether you're processing It's understandable that people from other image processing fields and frameworks enjoy their good old raw numerical world. I think this is mainly because JuliaImages documentation doesn't do a good job educating this workflow and best practice and people haven't yet enjoyed this type system. I started some best-practices draft JuliaImages/juliaimages.github.io#214 so if you're interested please check and/or leave some comments there. |
Essentially But in Julia: |
This discussion is very helpful for me. It reminds me that I have attempted to design |
Interesting! There's an intent to relax the requirement on the |
That sounds like it could be a useful extension.
I have great admiration for all the work in ImageProcessing.jl to carefully distinguish Gray from colors, but I'll guess that it is probably unlikely that the image formation community will adapt Gray as the generic type, and not just because we are used to using Floats :) |
Agreed, it doesn't seem to be a big help in the case of unitful values. |
I agree with Jeff here. My take here is: The mapping from a physical quantity to a unitless color representation is an important step that should be represented in the types being used. Making everything a color does not help in this respect. But as I said, In the Image processing package family, using a colored representation is perfect (did not want to argue against that). My point was that the Shepp Logan phantom would suite more into the package where no color is put around it. And apparently this goes in line how |
Hi Tim,
I am not sure whether this package is the best fit for this, but in the following gist their is an implementation of the shepp logan phantom:
https://gist.github.com/tknopp/7872297
I have used this code in Matlab (without imaging toolbox...) and Python when working in the medical image reconstruction field (MRI, CT,...).
The text was updated successfully, but these errors were encountered: