From 5cfb52ddd3a517963bdacc39eb4f187dcba01b84 Mon Sep 17 00:00:00 2001 From: Aadit3003 <82210227+Aadit3003@users.noreply.github.com> Date: Mon, 22 Nov 2021 20:57:57 +0530 Subject: [PATCH] lookup table --- New Dataset/PROJECT IMAGES/Match.xlsx | Bin 0 -> 9211 bytes Old Resources/Old Macros/Latest_Safe.ijm | 214 +++++++++++++++++++++++ 2 files changed, 214 insertions(+) create mode 100644 New Dataset/PROJECT IMAGES/Match.xlsx create mode 100644 Old Resources/Old Macros/Latest_Safe.ijm diff --git a/New Dataset/PROJECT IMAGES/Match.xlsx b/New Dataset/PROJECT IMAGES/Match.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..eb38050605d3bebedfece577e32e143d1aab16c2 GIT binary patch literal 9211 zcmeHtg;yNg^7Y{EF2Mo`gUjIV?g4_!;BG;J1PLy|-3jjQ0fI|#0%3511$PVNH_3bN zyZ7ea?=N`o^jh81)2C|9oUUDacU7w@z`^4K5CO;l0Du}`dX!~l2m=7b!UF(!0AyG_ z2}cJva|bu07hX>0t_Ccg_I6bH@UZl`09fe!|Be6R6{tuYRqkcOmb#YxF7cIFeyL6r znd>lc5SKwsxVtZ5pbV^+ZEgJ{JNzD7JdePJrxtf&$(!T!lU1FAeN$lAK)X76WWZ3j zrXd**YyaQ@T^A8ayo;{RaV|cYC_9OfQM5${Al13KR~;m|E+$_=YDGXO?7x|{IH-lQ zI?#$^^g9Vwl`-kidlwXp_z8=h}6%fUy|crOvU8y2ckztjMls<*n_ zr6_!GrElS!GX}%1u!Y2SVlI!bBDR0vp-=*m)|EzFl<5w{+A?!x z`(ScQFX-qrdG8I!BO(Cs;|Cl-^)Ik&)MR^l0gW|9DC*FlurzWpw{vA>`MLie9RG_k z_@}>K5wE1u%Z46uEc-ol=z4BB7F%4wLrk`v`h}mr+!9t}bO9~da@TWm>=&d#a58T? z{l1StmIb4~4N+fhfGQ$!@dchXc~pj^+&RBOVtD3~EbUye-iPBpcR6>JCL`}f@80>2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baSd*PuCTvh_>!L#~Mm)*{*P|3ymSL^IHq;N@FTa$K$I(l}(61nu zUh%yK@~q<`d}gP6IY&P}lyLUZxA& z7*|mXSiH>`<0|)ohPoH85(4h8fZQb=(}vy8G(IeD?D?jxqhJTTlL_S@+In?W!@^S{ zYZ@PNDi}2r&ji$&r1d+-{hofjfk|}9H`vwp7CPkA;}f5u@hd#0X&kGsyAGT>KGa;435*61CLx?ejQWjQMJ&`<6&HxR1^4 zNG;d77gI1{hs*0alAWlKxn@)L@ac>CG*u`uDhr<6oH%*Yla$ zmE8E%tR-beM(i~i8`TvQuq0(R+t@~jav|*xc*4`IB7UP7t7(XKCTaX;Jr`7%istsl z(_TCO#vU6nQ~u(a0A5%vB4jqIQAJiqr2l&qGaxVCE;R(qcRg-f$7n5J^~-1|wp*~hqGjmzF(OCQ;GPg`We zc`xA?kk4i%w+PDn!WgqcjvV*YX3Oa{p?7oVU2KAnn-{&8XRp=#SZ)n0Iq6m(>mH%v z?q4hg1Ir9$q88n$YhK zewW~XIIto5<=_uN{=4b#LgNq9E@({(x{R*B%Z}eY{FO-mu!p{dLk 1000){ + tort = prev_tort; + break; + } + } + + torts[index] = tort; + + // Close Windows + selectWindow("Results"); + run("Close"); + run("Close All"); + + // Increment Array Indices + index++; +} + +// Image processing Functions +function mex_hat(){ + run("Mexican Hat Filter", "radius="+mexican_hat_filter_radius); + setOption("BlackBackground", false); + run("Convert to Mask"); +} +function skeletonize(s_output, file){ + run("Skeletonize"); + run("Invert LUT"); + // SAVE + saveStage(s_output, file, "4_Skeleton_"); +} +function gray(){ + run("8-bit"); +} +function threshold(s_output, file){ + run("Gaussian Blur...", "sigma="+gaussian_sigma); + // SAVE + saveStage(s_output, file, "1_Gaussian_"); + + run("Frangi Vesselness", + "dogauss=true spacingstring=[1, 1] scalestring=[3, 5]"); + // SAVE + + saveStage(s_output, file, "2_Frangi_"); + + + selectWindow("Results"); + run("8-bit"); + run("Auto Local Threshold", + "method=Median radius="+auto_local_threshold_radius+" parameter_1=0 parameter_2=0 white"); + // SAVE +// saveStage(s_output, file, "3_Threshold_"); +} + +// Measurement Functions +function measureSkeleton(s_output, file){ + run("Set Scale...", "distance="+scale_pixels_per_1_mm+" known=1 unit=mm"); + run("Analyze Skeleton (2D/3D)", "prune=none calculate show"); + // SAVE + + selectWindow("Tagged skeleton"); + saveStage(s_output, file, "5_Analyze_Skeleton_"); // Tagged Skeleton +} + +function measure(){ + run("Set Scale...", "distance="+scale_pixels_per_1_mm+" known=1 unit=mm"); + run("Measure"); +} + +// Function to Save Intermediate Stages +function saveStage(output, file, name_string){ + if (checkbox) { + + run("Duplicate...", "title=copy.tif"); + selectWindow("copy.tif"); + + saveAs("Tiff", output + File.separator + name_string + file); + + + new_name = name_string + file; + selectWindow(new_name); + run("Close"); + } +} +