From cfce29dac7d33537697cc4d722a861ba3872a1a2 Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Fri, 29 Jan 2021 16:58:01 -0500 Subject: Added image display for reconstruction assessment --- tveq_phantom_example.m | 6 ++++++ tvqc_quantization_example.m | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/tveq_phantom_example.m b/tveq_phantom_example.m index 0439a00..ac98f65 100644 --- a/tveq_phantom_example.m +++ b/tveq_phantom_example.m @@ -43,3 +43,9 @@ disp(sprintf('Original TV = %8.3f', tvI)); xp = tveq_logbarrier(xbp, A, At, y, 1e-1, 2, 1e-8, 600); Xtv = reshape(xp, n, n); toc + +figure(1); imagesc(X); colormap(gray); colorbar; +title('Original image'); +figure(2); imagesc(Xtv); colormap(gray); colorbar; +title('Reconstructed image'); + diff --git a/tvqc_quantization_example.m b/tvqc_quantization_example.m index c9204a9..8ae5f94 100644 --- a/tvqc_quantization_example.m +++ b/tvqc_quantization_example.m @@ -65,3 +65,9 @@ time0 = clock; xp = tvqc_logbarrier(x0, A, At, b, epsilon, 1e-1, 5); Ip = reshape(xp, n, n); disp(sprintf('Total elapsed time = %f secs\n', etime(clock,time0))); + +figure(1); imagesc(I); colormap(gray); colorbar; +title('Original image'); +figure(2); imagesc(Ip); colormap(gray); colorbar; +title('Reconstructed image'); + -- cgit v1.2.3