Skip to content

Commit

Permalink
deploy: 9c3533c
Browse files Browse the repository at this point in the history
  • Loading branch information
agentmess committed Nov 11, 2023
1 parent efbb23a commit 3f3a57e
Show file tree
Hide file tree
Showing 10 changed files with 61 additions and 53 deletions.
64 changes: 36 additions & 28 deletions FOV and Resolution.html

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
48 changes: 24 additions & 24 deletions _sources/FOV and Resolution.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,14 @@
"% rectangular object to demonstrate FOV\n",
"\n",
"N = 256;\n",
"kx = [-N/2:N/2-1]/N;\n",
"kx = [-N/2+1:N/2]/N;\n",
"N_rect = N/4;\n",
"kdata = sinc(kx *N_rect).' * sinc(kx *N_rect);\n",
"\n",
"rect_recon = ifft2c(kdata);\n",
"\n",
"subplot(221)\n",
"imagesc(log(abs(kdata)), [0 (1)])\n",
"imagesc(log(abs(kdata)), [0 max(log(abs(kdata(:)))))\n",
"colormap(gray), axis equal tight off\n",
"subplot(222)\n",
"imagesc(abs(rect_recon), [0 max(abs(rect_recon(:)))])\n",
Expand All @@ -88,23 +88,23 @@
"\n",
"figure\n",
"subplot(221)\n",
"imagesc(log(abs(kdata2)), [0 (1)])\n",
"imagesc(log(abs(kdata2)), [0 max(log(abs(kdata2(:))))])\n",
"colormap(gray), axis equal tight off\n",
"subplot(222)\n",
"imagesc(abs(rect_recon2), [0 max(abs(rect_recon2(:)))])\n",
"colormap(gray), axis equal tight off\n",
"title('Doubled \\Delta k, Half FOV')\n",
"\n",
"kdata3 = kdata;\n",
"kdata2(1:3:end,:) = 0;\n",
"kdata2(2:3:end,:) = 0;\n",
"kdata2(:,1:3:end) = 0;\n",
"kdata2(:,2:3:end) = 0;\n",
"kdata3(1:3:end,:) = 0;\n",
"kdata3(2:3:end,:) = 0;\n",
"kdata3(:,1:3:end) = 0;\n",
"kdata3(:,2:3:end) = 0;\n",
"rect_recon3 = ifft2c(kdata3);\n",
"\n",
"figure\n",
"subplot(221)\n",
"imagesc(log(abs(kdata3)), [0 (1)])\n",
"imagesc(log(abs(kdata3)), [0 max(log(abs(kdata(:))))])\n",
"colormap(gray), axis equal tight off\n",
"subplot(222)\n",
"imagesc(abs(rect_recon3), [0 max(abs(rect_recon3(:)))])\n",
Expand Down Expand Up @@ -138,47 +138,47 @@
"% rectangular object to demonstrate resolution\n",
"\n",
"N = 256;\n",
"kx = [-N/2:N/2-1]/N;\n",
"kx = [-N/2+1:N/2]/N;\n",
"N_rect = N/2;\n",
"kdata = sinc(kx *N_rect).' * sinc(kx *N_rect);\n",
"\n",
"rect_recon = ifft2c(kdata);\n",
"\n",
"subplot(221)\n",
"imagesc(log(abs(kdata)), [0 (1)])\n",
"imagesc(log(abs(kdata)), [0 max(log(abs(kdata(:))))])\n",
"colormap(gray), axis equal tight off\n",
"subplot(222)\n",
"imagesc(abs(rect_recon), [0 max(abs(rect_recon(:)))])\n",
"colormap(gray), axis equal tight off\n",
"title('Full Resolution')\n",
"\n",
"kdata2 = kdata;\n",
"kdata2([[1:N/4],[3*N/4+1:N]],:) = 0;\n",
"kdata2(:,[[1:N/4],[3*N/4+1:N]]) = 0;\n",
"rect_recon2 = ifft2c(kdata2);\n",
"kdata4 = kdata;\n",
"kdata4([[1:3*N/8],[5*N/8+1:N]],:) = 0;\n",
"kdata4(:,[[1:3*N/8],[5*N/8+1:N]]) = 0;\n",
"rect_recon4 = ifft2c(kdata4);\n",
"\n",
"figure\n",
"subplot(221)\n",
"imagesc(log(abs(kdata2)), [0 (1)])\n",
"imagesc(log(abs(kdata4)), [0 max(log(abs(kdata4(:))))])\n",
"colormap(gray), axis equal tight off\n",
"subplot(222)\n",
"imagesc(abs(rect_recon2), [0 max(abs(rect_recon2(:)))])\n",
"imagesc(abs(rect_recon4), [0 max(abs(rect_recon4(:)))])\n",
"colormap(gray), axis equal tight off\n",
"title('Half k_{max}, Double voxel size')\n",
"title('1/4 k_{max}, 4x voxel size')\n",
"\n",
"kdata4 = kdata;\n",
"kdata4([[1:3*N/8],[5*N/8+1:N]],:) = 0;\n",
"kdata4(:,[[1:3*N/8],[5*N/8+1:N]]) = 0;\n",
"rect_recon4 = ifft2c(kdata4);\n",
"kdata8 = kdata;\n",
"kdata8([[1:7*N/16],[9*N/16+1:N]],:) = 0;\n",
"kdata8(:,[[1:7*N/16],[9*N/16+1:N]]) = 0;\n",
"rect_recon8 = ifft2c(kdata8);\n",
"\n",
"figure\n",
"subplot(221)\n",
"imagesc(log(abs(kdata4)), [0 (1)])\n",
"imagesc(log(abs(kdata8)), [0 max(log(abs(kdata8(:))))])\n",
"colormap(gray), axis equal tight off\n",
"subplot(222)\n",
"imagesc(abs(rect_recon4), [0 max(abs(rect_recon4(:)))])\n",
"imagesc(abs(rect_recon8), [0 max(abs(rect_recon8(:)))])\n",
"colormap(gray), axis equal tight off\n",
"title('1/4 k_{max}, 4x voxel size')\n",
"title('1/8 k_{max}, 8x voxel size')\n",
"\n"
]
},
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

0 comments on commit 3f3a57e

Please sign in to comment.