TAILIEUCHUNG - Nén Ảnh part 10

Tham khảo tài liệu 'nén ảnh part 10', kỹ thuật - công nghệ, điện - điện tử phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | printf nthat are multiples of 2. Check size of n printf original image used in the transform. exit 1 printf nEnter block size used . 8x8 16x16 etc. -- scanf dx d NB NB Nt NB NB size of block. N1 N NB of blocks in the horizontal or vertical directions NS NB N Size of input buffer. NC N1 N1 Total of blocks in image. Allocating memory. buffi float malloc NS sizeof float sumd float malloc Nt sizeof float sumdsq float malloc Nt sizeof float sigma float malloc Nt sizeof float xt wherex yt wherey gotoxy 70 25 textattr WHITE GREEN 4 BLINK cputs WAIT gotoxy xt yt for j 0 j Nt j sumd j sumdsq j for i 0 i N1 i fread buffi sizeof float NS fptri for j 0 j N1 j kk j NB for k1 0 k1 NB k1 loc1 kk k1 N kk2 k1 NB for k2 0 k2 NB k2 loc loc1 k2 417 k kk2 k2 sumd k buffi loc sumdsq k buffi loc buffi loc k2 loop. k1 loop. j-loop. i loop Compute o for each coefficient. printf nComputing the Standard deviation for printf each coefficient. n denom float NC float NC for i 0 i Nt i sigma i fabs float NC sumdsq i - sumd i sumd i denom sigma i float sqrt double sigma i if sigma i sigma i free sumd free sumdsq fclose fptri xt wherex yt wherey gotoxy 70 25 textattr WHITE BLACK 4 cputs gotoxy xt yt printf nDone. b int malloc Nt sizeof int k 0 printf n nEnter bpp-- scanf f bpp printf nEnter file name to store bit allocation matrix-- scanf s file_name fptro fopen file_name w B bpp Nt theta for i 0 i Nt i 418 sum log10 double sigma i sigma i the ta log10 b i sum int sum 0 Bs 0 for i 0 i Nt i Bs b i error Bs- float B if error 0 xp theta else xn theta sign1 error 1 -1 theta while 1 for i 0 i Nt i sum log10 double sigma i sigma i the ta log10 b i sum int sum 0 Bs 0 for i 0 i Nt i Bs b i error Bs- float B sign2 error 1 -1 if sign1 sign2 0 break theta 1 if error xp theta else xn theta Half-interval method. k 0 while 1 k theta xp xn for i 0 i Nt i sum log10 double sigma i sigma i the ta log10 b i sum int sum 0 .

TỪ KHÓA LIÊN QUAN
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.