æ°å± èªã¿æ¹
æ°å± èªã¿æ¹ Niiã¯ãããéããããããç解ããæ¹æ³ãåŠã¶ã®ã«åœ¹ç«ã€åŠç¿ã·ã¹ãã ã§ããããã¯ãåŸãã®ãç°¡åã§ã1æ¥æ°åããå¿ èŠãšããªããã·ã³ãã«ã§æ®µéçãªã·ã¹ãã ã§ãã ãã®è³ªåã«å¯Ÿããäžèœã®çãã¯ãªããNiiãèªãæè¯ã®æ¹æ³ã¯å人ãç¹å®ã®æèã«ãã£ãŠç°ãªãå¯èœæ§ããããŸãããã ããNiiãããå¹æçã«èªãããã®ãã³ãã«ã¯ãèªãããã®å°çšã®æéã確ä¿ããããããã¹ããå°ããªãã£ã³ã¯ã«åå²ããããç解ãå©ããããã«ããŸããŸãªèªæžæŠç¥(ã¹ããã³ã°ãã¹ãã£ã³ãªã©)ã䜿çšãããããããšãå«ãŸããå ŽåããããŸãã NIIãã¡ã€ã«ã衚瀺ããã«ã¯ã©ãããã°ããã§ãã? Niftiãã¡ã€ã«ã¯ãImageJãMBATãMangoãªã©ãããŸããŸãªããã°ã©ã ã§è¡šç€ºã§ããŸããåããã°ã©ã ã«ã¯ç¬èªã®é·æãšçæããããããç®åã®ä»äºã«é©ããããã°ã©ã ãéžæããããšãéèŠã§ããImageJã¯ãMAC OSXãå«ãã»ãšãã©ã®ãªãã¬ãŒãã£ã³ã°ã·ã¹ãã ã§åäœããJavaããŒã¹ã®ããã°ã©ã ã§ããMBATã¯ãUSCã®ç¥çµã€ã¡ãŒãžã³ã°ç 究æã®ãã®ã§ããMangoã¯ããã¥ãŒãã€ã¡ãŒãžã³ã°ã€ã³ãã©ããã£ã¯ã¹ããŒã«ãšãªãœãŒã¹ã¯ãªã¢ãªã³ã°ããŠã¹ããæäŸããããã¹ã¯ããããWebãããã³iPadäºæããŒãžã§ã³ãæäŸããŠããŸãã Nibabel ã¯ããã¥ãŒãã€ã¡ãŒãžã³ã°ããŒã¿ãã¡ã€ã«ãèªã¿æžãããããã®ã©ã€ãã©ãªã§ãããã¥ãŒãã€ã¡ãŒãžã³ã°ããŒã¿ãæäœããã³åæããããã®äžé£ã®æ©èœãæäŸããŸãã NIIãã©ãŒããããšã¯ ãã¥ãŒãã€ã¡ãŒãžã³ã°ã€ã³ãã©ããã£ã¯ã¹ãã¯ãããžãŒã€ãã·ã¢ãã(NIfTI)ã¯ãç£æ°å ±é³Žã€ã¡ãŒãžã³ã°æ³ã䜿çšããŠååŸããè³ã€ã¡ãŒãžã³ã°ããŒã¿ãä¿åããããã«äžè¬çã«äœ¿çšããããªãŒãã³ãã¡ã€ã«åœ¢åŒã§ããNIfTI ãã¡ã€ã«ã®ãã¡ã€ã«åæ¡åŒµå㯠niiãniigzãhdrããŸã㯠img ã§ãã NIFTIããJPGãžã®å€æã¯ãNIFTIãã¡ã€ã«ãJPG圢åŒã«å€æã§ããç¡æã®ãªã³ã©ã€ã³ã³ã³ããŒã¿ãŒã§ããNIFTIãã¡ã€ã«ãéžæãããå€æããã¿ã³ãã¯ãªãã¯ããŠå€æããã»ã¹ãéå§ããã ãã§ããå€æãå®äºãããšãå€æçµæã衚瀺ã§ããWebããŒãžã«ãªãã€ã¬ã¯ããããŸãã NIIãDICOMã«å€æããã«ã¯ã©ãããã°ããã§ãã? æ¢åã® dicom ãã¡ã€ã«ã¯ãdicom2nifti ããã±ãŒãžã䜿çšã㊠nifti 圢åŒã«å€æã§ããŸãããã®ããã±ãŒãžã«ã¯ããŠãŒã¶ãŒã nibabel ããã³ pydicom ããã±ãŒãžãã€ã³ã¹ããŒã«ããå¿ èŠããããŸããdicomãã¡ã€ã«ãnifti圢åŒã«å€æããæé ã¯æ¬¡ã®ãšããã§ãã 1. dicom2nifti.extract_framesæ©èœã䜿çšããŠdicomãã¡ã€ã«ãããã¬ãŒã ããŒã¿ãæœåºããŸãã 2. dicom2nifti.prepare_arrayé¢æ°ã䜿çšããŠæœåºããããŒã¿ã®åœ¢ç¶ãå€æŽããŠãå€æããé åãæºåããŸãã 3. dicom2nifti.convert_arrayé¢æ°ã䜿çšããŠãæºåããé åãniftiãã¡ã€ã«ã«å€æããŸãã è€æ°ã®dicomãã¡ã€ã«ãè€æ°ã®niftiãã¡ã€ã«ã«å€æããã«ã¯ãdicom2nifti.convert_filesé¢æ°ã䜿çšã§ããŸãããã®é¢æ°ã¯ãdicomãã¡ã€ã«ã®ãªã¹ããå ¥åãšããŠåãåããniftiãã¡ã€ã«ã®ãªã¹ããåºåããŸãã NiBabelã䜿çšãããšãNIfTIç»åã®èªã¿åããç°¡åã«ãªããŸãããŸããload() é¢æ°ã䜿çšããŠãNIfTI ãã¡ã€ã«ãã NiBabel ç»åãªããžã§ã¯ããäœæããŸããããŠã³ããŒãããzipãã¡ã€ã«ãããµã³ãã«ã®T1wç»åãããŒãããŸããNiBabelã䜿çšããŠNIfTIãã¡ã€ã«ãããŒããããšããã¡ã€ã«å ã®ãã¹ãŠã®æ å ±ããšã³ã³ãŒãããç¹å¥ãªã¿ã€ãã®ããŒã¿ãªããžã§ã¯ããåŸãããŸãã Pythonã®ãã¡ã€ã«ããNæåãã©ã®ããã«èªã¿åããŸãã? ãã¡ã€ã«ã®å 容ãèªã¿åãã«ã¯ãf.read(size) ãåŒã³åºããŠã倧éã®ããŒã¿ãèªã¿åãããããæååãšããŠè¿ããŸããsize ã¯ãªãã·ã§ã³ã®æ°å€åŒæ°ã§ãã NIFTIãã¡ã€ã«ãšDICOMãã¡ã€ã«ã®äž»ãªéãã¯ãNIFTIãã¡ã€ã«ã¯3次å ã§ããã®ã«å¯ŸããDICOMãã¡ã€ã«ã¯2次å ã§ãããšããããšã§ããããã¯ãNIFTIãã¡ã€ã«ãããå€ãã®æ å ±ãä¿åã§ãã空éæ¹åã®åé¡ãããé©åã«å æã§ããããšãæå³ããŸãã NIfTI座æšãšã¯ NIfTI 座æšç³»ã¯ RAS+ 座æšç³»ã§ãããijk ãã¯ã»ã«åº§æšã空éå ã®ç¹å®ã®äœçœ®ã«ãããã³ã°ããŸããæåã®è»ž(X)ã¯å·Šããå³ã«èµ°ãã2çªç®ã®è»ž(Y)ã¯åŸããåæ¹ã«èµ°ãã3çªç®ã®è»ž(Z)ã¯äžããäžãžãšèµ°ããŸãã çŽå©æ¯åå ¥ã¯ãéè¡ã®æå©åè³ç£ããåŸãããå©æ¯ãšæå©åè² åµã«å¯ŸããŠæ¯æãããå©æ¯ã®å·®é¡ã§ãããã®ææšã¯ãéè¡ã®å šäœçãªåçæ§ã®éèŠãªèŠçŽ ã§ãããããéèŠã§ãã NIIãéèŠãªçç± çŽå©æ¯åå ¥(NII)ã¯ãå©çšå¯èœãªçŸéã䜿çšããŠæ°ãããããžã§ã¯ããã€ãã·ã¢ããã«æè³ããããšã«ãããäŒæ¥ãå©çãçã¿åºãèœåãè©äŸ¡ããããã«äœ¿çšããã財æ¿ããã©ãŒãã³ã¹ææšã§ããNIIã®èšç®åŒã¯ãåºæ¬çã«ååå©æ¯ããäŒç€Ÿã®è²»çšãå·®ãåŒããŸããçµæžã®éå©ãäžæããŠãããšããçŽéå©ããŒãžã³ã¯å€§ãããªããéããŸãåæ§ã§ãã NIIã®å©ããåããŠãããŒã³ããŒããã©ãªãªã®è³ªãéå©å€æŽãéè¡ã®åçæ§ã«äžãã圱é¿ãªã©ãç解ããããšãã§ããŸããç°¡åã«èšãã°ãNIIã¯ãé¢é£ãããã¹ãŠã®è²»çšãå·®ãåŒããåŸã®æè³æŽ»åããäŒæ¥ã皌ãéé¡ã§ãã ãããã£ãªãŒãã¯ãNIfTI圢åŒã®ç»åãèªã¿èŸŒã¿ãããªã¥ãŒã¡ããªãã¯ããŒã¿ãšããŠè¿ãé¢æ°ã§ããNIfTI1 […]