tailieunhanh - Giáo trình xử lý ảnh y tế Tập 2 P8

Trong các ảnh, các vật thể đáng quan tâm thông thường được che hết bề mặt của ảnh. Vì thế, nếu các đối tượng trong nền không được cho độ phân giải dư thừa, các vật thể cận cảnh thông thường có đủ mẫu để cho phép dùng các định lý lấy mẫu. | void bit_reversal unsigned int int int void WTS float float int int void FFT float xr float xi float float int int void transpose FILE int int void FFT2D FILE FILE float float unsigned int int int int void main int N N1 m n2 i j ii jj N2 k norder j1 ind yt unsigned int L float wr wi Do theta nsqrt beta alpha sum1 sum2 T FILE fptri fptro fptr float buffi buffo R2 H nsq win slope gamal gamah unsigned char file_name 14 ch ch1 file_name1 14 clrscr printf response can be calculated using standard n printf functions available to you if your reply to the n printf following question is negative. n printf Is freq. response provided in a file y or n -- while ch 1 getche y ch 1 n switch ch1 case n case N printf nEnter of points to be generated . 32x32 -- scanf d c d N1 ch N1 break case y case Y printf nEnter name of file storing magnitude response-- scanf s file_name1 fptr fopen file_name1 r fscanf fptr d d N1 N1 _ N N1 1 yt wherey again gotoxy 1 yt printf gotoxy 1 yt printf Enter file name for storing impulse response -- scanf s file_name 169 if stricmp file_name 0 11 stricmp file_name 0 stricmp file_name 0 printf This is a reserved file name. Use some other name. goto again gotoxy 1 yt printf ind access file_name 0 while ind gotoxy 1 yt 1 printf gotoxy 1 yt 1 printf File exists. Wish to overwrite y or n -- while ch tolower getch y ch n putch ch switch ch case y ind 1 break case n gotoxy 1 yt 1 printf printf gotoxy 1 yt gotoxy 1 yt printf Enter file name -- scanf s file_name ind access file_name 0 fptri fopen wb fptro fopen wb buffi float malloc N1 1 sizeof float switch ch1 case n case N Generating data for IFFT. printf nEnter cut-off freq. in rad. sec. cut-off n. - 170 scanf f Do Do Do pi float N printf Enter choice 1 2 3 4 or 5 n printf 1. Low-pass with abrupt transition. n printf 2. High-pass with abrupt transition. n printf 3. Low-pass Butterworth. n printf 4. High-pass Butterworth. n printf 5. Homomorphic .