TAILIEUCHUNG - Giáo trình xử lý ảnh y tế Tập 3 P16

Nếu bạn muốn dời dấu thập đi chỗ khác trong trường hợp các điểm nhập vào lớn hơn một, thì nhắp nút trái chuột nhiều lần. Hành động này sẽ làm dời đi rất nhiều điểm tuỳ theo bạn chọn (bắt đầu từ điểm cuối cùng) từ biểu đồ màu và lưu trong mảng. Khi bạn ấn ESC, con trỏ sẽ xuất hiện trên màn hình VGA. | printf n d derivative f error f k der delta if fabs delta printf n A numerical problem was encountered. printf n Restart problem with a different choice. exit 1 r 0 -delta der gotoxy 70 25 textattr WHITE BLACK 4 cputs gotoxy xt yt 2 switch ch case 1 case 3 printf n n - c char 236 r 0 break case 2 printf n n d 0 r 0 for i 1 i N i printf n d i r i switch ch case 1 case 3 printf n c char 236 break case 2 printf n -d 0 printf nEnter file name for storing quantizer-- scanf s file_name fptr fopen file_name w for i 0 i N i fprintf fptr f f n d i r i fclose fptr 375 double p double x double prob switch ch case 1 prob exp -x x break case 2 prob break case 3 prob exp fabs x break return prob define EPS ----------------------------------- Calculating the next decision level given values for d i-11 and r i-1 . ---------------------------------- double decision_level double di_1 double ri_1 double delta di fun dfun ff area1 area2 int i if fabs di_1 delta else delta di ri_1 delta i 0 Using Newton-Raphson s method for root finding. while fabs delta EPS i if i 1000 printf n no convergence. n return di area1 Romberg di-1 di f1 area2 Romberg di-1 di f2 376 ff area1 area2 fun ri_1 -ff if fabs area2 printf n A numerical problem was encountered. printf n Restart problem with a different choice. exit 1 dfun -p di di-ff area2 if fabs dfun gotoxy 1 20 printf n derivative f dfun printf n A numerical problem was encountered. printf n Restart problem with a different choice. exit 1 delta -fun dfun di delta return di --------------------------- functions used by numerical integration routine. ---------------------------------- double f1 double y return y p y double f2 double y return p y ------------------------------- Numerical integration using Romberg method. ----------------------------- double Romberg double di_1 double di double f double .

Đã 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.