Is there anybody who knows how to do this? This is an assignment for my Bioimagi
ID: 638541 • Letter: I
Question
Is there anybody who knows how to do this? This is an assignment for my Bioimaging course and I really need help! Here's how it works:
Write a MATLAB project that will do the following:
? load the sample image file 'Chest Xray 1.jpg';
? call a function that you write to determine the overall SNR of the entire image (this number is misleading and not of much value ? why? Write a brief statement of why)
? call the same function to determine the SNR in two areas of the image
? Now, call a function that you write to determine the CNR of the image, as measured using the two areas above.
? The main program can be a script m-file- it should call these two functions as described above and write out the four answers (three SNRs and a CNR).
You should:
- add a few comments
- keep code clean and neat
- use variable names that make sense ("SampImage" is good, but "q" is not)
Explanation / Answer
may be you can try like this
SNR = Psignal / Pnoise = (Asignal / Anoise)^2
Where P is power, and A is amplitude.
I would calculate the RMS amplitudes and use those in the above formula.
[edit]
RMS means Root-Mean-Square. That is, you square your signal, calculate the mean of that, and take the square root. Just define a wee anonymous function for clarity:
Now you can compute your ratio like so:
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.