[ãç¥ãã]
ãæ¬ãã¼ã«ã® 32-bit ç»åãªãã³ã« ImageJ Ver. 1.54 (2023.7以éèªåã¢ãããã¼ãéå§) 対å¿ãã¼ã¸ã§ã³ã以ä¸ã«å ¬éãã¦ããã¾ããä»å¾ã¯ã以ä¸ã®ãã¼ã¸ã«ãããã¼ã¸ã§ã³ããã¦ã³ãã¼ããã¦ãã ããã
yasuo-ssi.hatenablog.com-------------------
ãæ¬ãµã¤ãã§ã¯ãä¸åçé»å¤ãã¬ã«ã©ã¼ãã£ã«ã åçã®æãå¹æçãªè£æ£ææ³ã¨ãã¦Bãã£ã³ãã«å建æ³ã¨ããææ³ãæå±ãã¦ãã¾ãããã®ææ³ã®æ ¸ã¯ãä»ã®ã«ã©ã¼ãã£ã³ãã«ã®æ å ±ãããã¯ã¹ãã¦Bãã£ã³ãã«ãå建ããã¨ãããã®ã§ãããä»åãã®é¨åãæ±ç¨åããR, G, Bä»»æã®ãã£ã³ãã«ã®ç»åããä»ã®ãã£ã³ãã«ã®ç»åæ å ±ãæ··åãã¦åæ§æããã¨ãããã¼ã«ãä½æãã¾ããããã¦ã³ãã¼ãå ã¯ããã¡ãã«ãªãã¾ãããã¦ã³ãã¼ããããã¡ã¤ã«ã解åããImageJ (Fiji) ã®ãã©ã°ã¤ã³ãã©ã«ãã«æ¾ãè¾¼ãã§ãã ãããã¾ãå¾è¿°ããããã«GIMPã§ã®ç·¨éããµãã¼ãããGIMPç¨ãã©ã°ã¤ã³ãå梱ããã¦ãã¾ãã
ããªããImageJã®ã¤ã³ã¹ãã¼ã«æ¹æ³ã¯ä»¥ä¸ãã覧ãã ããã
 ãæ¬ãã¼ã«ãã¤ã³ã¹ãã¼ã«ããã¨ImageJã®Plugins ã¡ãã¥ã¼ã®ä¸ã« Color Channel Image Reconstructor ã¨ããååã®ãã©ã°ã¤ã³ãããã¯ãã§ãããããèµ·åããã¨ãæåã«èªã¿è¾¼ã¿ãã¡ã¤ã«ãæå®ãããã¤ã¢ãã°ãéãã¾ãã
ã次ã«ãã©ã¡ã¼ã¿æå®ãã¤ã¢ãã°ãéãã¾ãã
Â
[Channel for reconstruction]ã¯åæ§æãã対象ã®è²ãã£ã³ãã«ã§ãR, G, Bããé¸æãã¾ãã
ãã®æ¬¡ [1st Mixing Channel] ã¯ãä¸ã§é¸ãã ãã£ã³ãã«ãè£æ£ããããã®æåã®ãã¼ã¿ã®æ··å ¥å ãã£ã³ãã«ã«é¢ããè¨å®ã§ãã
[Mixing Channel]ã¯æåã®ãã¼ã¿ã®æ··å ¥å ãã£ã³ãã«ã®é¸æã§ããR, G, Bããã³ã°ã¬ã¼ã¹ã±ã¼ã«å¤ã§ãããLuminosity(è¼åº¦), Lightness(æ度)ããé¸ã¹ã¾ããæ度ã¯ãR, G, Bã®å¤ã®è¼åº¦ã®å¹³åå¤ã使ã£ãã°ã¬ã¼ã¹ã±ã¼ã«å¤ã§ãããè¼åº¦ã¯R, G, Bã®åãã£ã³ãã«ã®è¼åº¦ã«ã¦ã§ã¤ããã¤ãã¦ä½æããã°ã¬ã¼ã¹ã±ã¼ã«å¤ã§ã(gray = 0.299 x red + 0.587 x green + 0.114 x blue)ã
[Channel Mixing Ratio]ã¯ãæ··å ¥å ã®å¤ã®æ··å ¥å¯¾è±¡ãã£ã³ãã«ã«å¯¾ããæ··å ¥æ¯ã§ãã0ãã1.0ã®éã§æå®ãã¾ããã1.0ãæå®ããã¨ãæ··å ¥å ã®å¤ãå®å ¨ã«æ··å ¥å ã®å¤ã«ç½®ãæãããã¨ã«ãªãã¾ããã¾ã0ãªãå ¨ããã¼ã¿ã®æ··å ¥ã¯ããã¾ãããä»®ã«æ··å ¥å¯¾è±¡ã®å¤ãv1, æ··å ¥å ã®å¤ãv2, æ··å ¥æ¯ã r ã¨ããã¨ãæçµçã«å¾ãããå¤ v ã¯ãv = v1 x (1 - r) + v2 x r ã§å®ç¾©ããã¾ãã
Â
[Mixing Mode]ã¯ãä¸ã®å¼ã§ä½æãããæ··å ¥ç»åã¨æ··å ¥å ç»åãæ¯è¼ãã¦ã©ã®ããã«ããã¯ã¹ããããæå®ãã¾ããNormal ã¯åã«ä¸å¼ã§ããã¯ã¹ãã¦çµããã§ããDarken ãé¸ã¶ã¨ãä¸å¼ã§ããã¯ã¹ããç»åã¨æ··å ¥å ç»åãæ¯è¼ããæ··å ¥å ç»åã®ãã¯ã»ã«ãããæããã°(å¤ãå°ãããã°)ãæ··å ¥å ãã¯ã»ã«ã®å¤ã§ç½®ãæãã¾ããæããªããã°å¼éãã«ããã¯ã¹ããå¤ãæ¡ç¨ããã¾ããGIMPã®ã¬ã¤ã¤ã¼ã¢ã¼ãã®[æ¯è¼æ]ã¨åãã§ããéã«Lightenã¯ä¸å¼ã§ããã¯ã¹ããç»åã¨æ··å ¥å ç»åãæ¯è¼ããæ··å ¥å ç»åã®ãã¯ã»ã«ãããæãããã°(å¤ã大ãããã°)ãæ··å ¥å ãã¯ã»ã«ã®å¤ã§ç½®ãæãã¾ãã[æ¯è¼æ]ã¨åãã§ãã
[Gamma for Mixing Channel] ã¯ãããã¯ã¹ãããã£ã³ãã«ã«ã¬ã³ãè£æ£ãæããä¿æ°ãæå®ãã¾ããããã©ã«ãã¯1.0ã§ãããã¯è£æ£ãªãã§ãã0ï½1.0æªæºã®å¤ãå ¥åããã¨ãããã¯ã¹ãããã£ã³ãã«ç»åãæãããªãã1.0ãè¶ ããå¤ãå ¥åããã¨ããã¯ã¹ãããã£ã³ãã«ã®ç»åãæããªãã¾ããããã¯ã¹ã«ãã£ã³ãã«ã®æãããå¤ãããã¨ã§ãããã¯ã¹å¾ã®ãã£ã³ãã«ãããã«å¿ãã¦æãããå¤ããã¾ãã
ããã®æ¬¡ [2nd Mixing Channel] 以ä¸ã®è¨å®é ç®ã¯2çªç®ã®æ··å ¥ãã£ã³ãã«ã«é¢ããè¨å®ã§ãããã®ä¸ã®é ç®ã¯1çªç®ã®ãã£ã³ãã«ã®è¨å®ã¨åãã§ãã®ã§è©³ãã説æã¯çç¥ãã¾ããã2çªç®ã®æ··å ¥ãã£ã³ãã«ã使ããªãå ´åã¯ã[Mixing Channel]ã§ã"None"ãæå®ãã¦ãã ããã
ãã¾ãã[Channel Mixing Ratio]ã¯ãæ··å ¥å ã«å¯¾ãã¦ãäºã¤ã®ãã£ã³ãã«ã®æ å ±ãæ··åãã¦è£æ£ããå ´åã¯ã2ã¤ã®å²åã足ãåããã¦1.0ãè¶ ããªãããã«ãã¦ãã ãããè¶ ããå ´åã¯ã2çªç®ã®æ··å ¥ãã£ã³ãã«ã®æ··å ¥æ¯ãèªåçã«1.0 - 1çªç®ã®ãã£ã³ãã«ã®æ··å ¥æ¯ã«èª¿æ´ãã¾ãããã®å ´åæ··å ¥å ãã£ã³ãã«ã®æ··å ¥æ¯ã¯ 0.0 ã«ãªã£ã¦ãã¾ãã¾ã(ã¤ã¾ãå ãã£ã³ãã«ã®æ å ±ã¯ä½¿ããªããªã)ã
ãã¾ãã[Mixing Channel]ã«ã¯è¼åº¦ã¨æ度ãé¸ã¹ã¾ãããä¾ãã°æåã®æ··å ¥ãã£ã³ãã«ã«è¼åº¦ãé¸æãã2çªç®ã®æ··å ¥ãã£ã³ãã«ã«æ度ãé¸æãããã¨ã¯ã§ãã¾ããããã®å ´åèªåçã«2çªç®ã®æ··å ¥ãã£ã³ãã«ã"None"ã«ãã¾ããã¤ã¾ã2種é¡ã®ã°ã¬ã¼ã¹ã±ã¼ã«ãæ··å ¥ãããã¨ã¯ã§ãã¾ããã
[Output File Name for GIMP Plugin]ã¯ãå¾ç¨GIMPãã©ã°ã¤ã³ã§ç°¡åã«èªã¿è¾¼ãããããªãã¡ã¤ã«åã§åºåããããæå®ãã¾ããGIMPç¨ãã©ã°ã¤ã³ã使ã£ã¦ç·¨éããå ´åã®ã¿ã"Yes"ããæå®ãã¦ãã ããã
ãåºåãã¡ã¤ã«ã§ããã以ä¸ã®4(ã¾ãã¯5)æ¬ãåºåãã¾ãã
originalfilename_R.tif
ãRãã£ã³ãã«ç»å
originalfilename_G.tif
ãGãã£ã³ãã«ç»å
 originalfilename_B.tif
ãBãã£ã³ãã«ç»å
 originalfilename_C1x F1_C2xF2MixingMode_GmZ.tif
ãC1ã¯è£æ£å¯¾è±¡ãã£ã³ãã«ãC2ã¯æ··å ¥å ãã£ã³ãã«ãF1, F2 ã¯æ··å ¥æ¯ãMixingModeã¯ããã·ã³ã°ã¢ã¼ã (Darken, Normal, Lighten)ãZ ã¯ã¬ã³ãå¤ã«ãªãã¾ãã
ãã¾ãã[Output File Name for GIMP Plugin]ã«ãã§ãã¯ãã¤ããã¨ã
originalfilename_Ch_Reconstructed.tif
ã¨ãããã¡ã¤ã«ãåºåãã¾ãããå 容ã¯ãoriginalfilename_C1x F1_C2xF2MixingMode_GmZ.tif ã¨å ¨ãåãã§ãã
Â
ã以ä¸ã«ãããããè²ãã£ã³ãã«ãå¥ã®è²ãã£ã³ãã«ã®æ å ±ãæ··å ¥ãã¦åæ§æãããã¨ãã§ãã¾ããã¾ãæ··å ¥ãããã£ã³ãã«ã®æãããã¬ã³ããæãããã¨ã§æããããããæãããããããã¨ãã§ãã¾ã(ãã¾ãè¤éã§ããããã«ãããã¨æããæ··å ¥å ãã£ã³ãã«ã«ã¯ã¬ã³ãã¯ãããããªãããã«ãã¦ãã¾ã)ãããã«ããåæ§æãããã£ã³ãã«ã®æããã調ç¯ã§ãã¾ãããã®æãã調æ´ã®é¨åã¯é常ã®åçç·¨éã½ããã®ãã£ã³ãã«ãããµã¼ã«ã¯ãªãæ©è½ã§ãã
ãããã«ä»¥ä¸ã®ãã¡ã¤ã«ãã¯ã³ã¿ããã§GIMPã«èªã¿è¾¼ããã©ã°ã¤ã³ãå梱ãã¾ããããã¯ãGIMPç¨ãã©ã°ã¤ã³ã解åããGIMPã®ãã©ã°ã¤ã³ãã©ã«ãã«ã³ãã¼ãã¦ãã ãããã³ãã¼ããã¨ã以ä¸ã®ã¡ãã¥ã¼ããèµ·åã§ããããã«ãªãã¾ãã
Â
ããã®èªã¿è¾¼ãã ãã¡ã¤ã«ãRGBåæã«æãããã¨ã§ãè£æ£ããè²ãã£ã³ãã«ã使ã£ãRGBåæãã§ãã¾ããèªã¿è¾¼ã¾ããã®ã¯ã
originalfilename_R.tif
ãRãã£ã³ãã«ç»å
originalfilename_G.tif
ãGãã£ã³ãã«ç»å
 originalfilename_B.tif
ãBãã£ã³ãã«ç»å
originalfilename_Ch_Reconstructed.tif
ãåæ§æãããã£ã³ãã«ç»å
以ä¸ã®4æ¬ã§ããåæ§æãããã£ã³ãã«ç»åãå ã ã®è²ãã£ã³ãã«ã®ä»£ããã«ä½¿ã£ã¦RGBåæãã¦ãã ããã
ããã以å¤ã«ãããè²ãã£ã³ãã«ã ãã«ã¬ã³ããæãããã¨ãã§ãã¾ãããã®å ´åã¯ã[Channel for reconstruction]ã¨[Mixing Channel]ã«åãè²ãã£ã³ãã«ãæå®ãã[Channel Mixing Ratio] ã«ã¯1.0ãæå®ãã¾ã(ã¤ã¾ãæ··å ¥å ãã£ã³ãã«ã§æ··å ¥å ãå®å ¨ã«ç½®ãæãã)ãããã«ã[Gamma for Mixing Channel] ã«å¤ãæå®ããã¨ãããã§æå®ããå¤ã®ã¬ã³ããæããè²ãã£ã³ãã«ãä½æããã¾ãã
------
ãã¨ããã§ããæ°ã¥ãã®æ¹ã¯ãæ°ã¥ããã¨æãã¾ããããã®ãã¼ã«ã¯ãå®ã¯ããã©ãã¬ã¿ããã½ãã(Photoshop, GIMPç)ã®ãã£ã³ãã«ãããµã¼ã»ã¢ã¸ã¥ã¼ã«ã¨ä¼¼ã¦ãã¾ããããããã®ãã¼ã«ã¯ã以ä¸ã®ç¹ã§ãã©ãã¬ã¿ããã½ããã®ãã£ã³ãã«ãããµã¼ã§ã¯ã§ããªããã¨ãã§ãã¾ãã
1. ãã£ã³ãã«ããã·ã³ã°ããéã«ãããã¯ã¹ãããã£ã³ãã«ã«å¯¾ãã¬ã³ã調æ´ãæãããã¨ãã§ããã
2. ãã£ã³ãã«ããã·ã³ã°ããéã«ãããã«ããã¯ã¹ãã£ã³ãã«ã®æ å ±ãæ¯è¼æ/æ¯è¼æã§ããã·ã³ã°ã§ããã
3. ãã£ã³ãã«ããã·ã³ã°ããç»åããã¡ã¤ã«ã¨ãã¦åºåã§ããã®ã§ããã¹ã¯ãããã¦ããã«ãã£ã³ãã«ããã·ã³ã°ç·¨éãè¡ããã¨ãã§ããã
ããã£ã¨å
·ä½çã«èª¬æããã¨ãä¸é¨ã®ãã©ãã¬ã¿ããã½ããã®ãã£ã³ãã«ãããµã¼ã¯ã°ãã¼ãã«ã«ãããã£ã³ãã«ããã·ã³ã°ã§ããªã*1ããããå½ãã¼ã«ã§ã¯ãã¡ã¤ã«ã¨ãã¦åºåã§ããã®ã§ããã¹ã¯ã¨çµã¿åããã¦ããã¼ã«ã«ã«é¨åé¨åã§ããã·ã³ã°æ¯çãå¤ãã¦åæ§æãããã£ã³ãã«ãä½æãããã¨ãã§ããã
4. ã°ã¬ã¼ã¹ã±ã¼ã«ç»å (è¼åº¦ããã³æ度) ãããã¯ã¹ãããã£ã³ãã«ã¨ãã¦ä½¿ããã
Â
ããªãããã®ãã¼ã«ã使ã£ãå ·ä½çãªè£æ£ä¾ã¯ã次å以éæ²è¼ãã¾ãã
Â
---------------------------
追è¨: è£æ£ä¾
Â