Skip to content
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

reconstruction of my own image #81

Closed
kangpyo opened this issue Dec 3, 2020 · 1 comment
Closed

reconstruction of my own image #81

kangpyo opened this issue Dec 3, 2020 · 1 comment

Comments

@kangpyo
Copy link

kangpyo commented Dec 3, 2020

Hi Prof. Fessler,

I'm trying to implement MIRT image reconstruction into my electron transmission microscopy (TEM), which often resulted in poor resolution.
I have been multiple trials in windows but it shows an error and I switched to Linux and it works well with your demonstration.
now, I'm trying to implement my TEM image in your algorithm "01-recon.jl".
I convert the image RGB to gray and again convert Gray to Float32.
The code jim seems to recognize the image but fft cannot process the image.
I believe this is not a major problem but I cannot resolve it.

here is the error message.
ytrue = fft(Xtrue)[samp]
ERROR: BoundsError: attempt to access 1000×1000 Array{Complex{Float32},2} at index [Bool[1 1 … 1 1; 1 1 … 1 1; … ; 1 1 … 1 1; 1 1 … 1 1]]
Stacktrace:
[1] throw_boundserror(::Array{Complex{Float32},2}, ::Tuple{Base.LogicalIndex{Int64,BitArray{2}}}) at ./abstractarray.jl:541
[2] checkbounds at ./abstractarray.jl:506 [inlined]
[3] _getindex at ./multidimensional.jl:742 [inlined]
[4] getindex(::Array{Complex{Float32},2}, ::BitArray{2}) at ./abstractarray.jl:1060
[5] top-level scope at none:1

could you help me with what I can do next?
once this works, I will implement my videos. I have ~TB of a huge data set of electron microscopy images and video.

Thank you
best
KP

@JeffFessler
Copy link
Owner

Your samp array probably has a different size than your Xtrue array.
It is better to do this by email than by github issues. My email is easy to find online so check your array sizes and followup with email if needed. I will close this issue here because it doesn't look like a MIRT bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants