mirror of
http://GIT.AGENTUM.BEGET.TECH/O/O
synced 2024-12-18 23:54:46 +01:00
ð£ á¯âáá€áŠâÐNá©á±áŽââµááááá±áŽð¥ì·ßŠá©áŽ¥á€áŠá±áŽßŠá©ì·ááðáááâµâá©ê³ð¡ð¢ðð¢ð¡ê³á©ââµáááðááì·á©ßŠá±áŽá€áŠáŽ¥á©ßŠì·ð¥á±áŽááááâµâá±áŽá©ÐNâá€áŠáâá¯ð£
This commit is contained in:
parent
03cfe12d76
commit
41c2937f9d
@ -1,4 +1,4 @@
|
|||||||
import cv2,OpenEXR,Imath
|
import cv2,OpenEXR,Imath
|
||||||
import numpy as âµäººßŠááÐNâµãâµãâµÐNááߊ人âµ
|
import numpy as âµäººßŠááÐNâµãâµãâµÐNááߊ人âµ
|
||||||
from edt import edt
|
from edt import edt
|
||||||
|
|
||||||
@ -19,7 +19,7 @@ for i in range(1,âµáŽ¥á±áŽ8ááÐNãáá±áŽ8á©áâµãâµãâµáá©8
|
|||||||
âµáŽ¥Oð§·ááá©ê³âµá±áŽááÐNá©ð§·ááêŽââµð§·ÐNá±áŽêŽâá©áŽ¥á€áŠâµáááêŽê€á©áâµãâµãâµáá©ê€êŽáááâµá€áŠáŽ¥á©âêŽá±áŽÐNð§·âµâêŽááð§·á©ÐNááá±áŽâµê³á©ááð§·OᎥâµ=2/4.793447 # 2/5.5625 # 1/27**1/âµäººßŠááÐNâµãâµãâµÐNááߊ人âµ.cbrt(2)
|
âµáŽ¥Oð§·ááá©ê³âµá±áŽááÐNá©ð§·ááêŽââµð§·ÐNá±áŽêŽâá©áŽ¥á€áŠâµáááêŽê€á©áâµãâµãâµáá©ê€êŽáááâµá€áŠáŽ¥á©âêŽá±áŽÐNð§·âµâêŽááð§·á©ÐNááá±áŽâµê³á©ááð§·OᎥâµ=2/4.793447 # 2/5.5625 # 1/27**1/âµäººßŠááÐNâµãâµãâµÐNááߊ人âµ.cbrt(2)
|
||||||
âµð§·ì·á€áŠêŽá±áŽì·âµãâµãâµì·á±áŽêŽá€áŠì·ð§·âµ,âµì·ð§·âêŽá¯âµãâµãâµá¯êŽâð§·ì·âµ=âµá±áŽá€áŠá©áêŽãð§·áߊÐNêŽâµãâµãâµêŽÐNߊáð§·ãêŽáá©á€áŠá±áŽâµ.shape[:2]
|
âµð§·ì·á€áŠêŽá±áŽì·âµãâµãâµì·á±áŽêŽá€áŠì·ð§·âµ,âµì·ð§·âêŽá¯âµãâµãâµá¯êŽâð§·ì·âµ=âµá±áŽá€áŠá©áêŽãð§·áߊÐNêŽâµãâµãâµêŽÐNߊáð§·ãêŽáá©á€áŠá±áŽâµ.shape[:2]
|
||||||
âµá±áŽááÐNá©ð§·ááêŽââµð§·ÐNá±áŽêŽâá©áŽ¥á€áŠâµáááêŽê€á©áâµãâµãâµáá©ê€êŽáááâµá€áŠáŽ¥á©âêŽá±áŽÐNð§·âµâêŽááð§·á©ÐNááá±áŽâµ=int(max(âµð§·ì·á€áŠêŽá±áŽì·âµãâµãâµì·á±áŽêŽá€áŠì·ð§·âµ,âµì·ð§·âêŽá¯âµãâµãâµá¯êŽâð§·ì·âµ)*âµáŽ¥Oð§·ááá©ê³âµá±áŽááÐNá©ð§·ááêŽââµð§·ÐNá±áŽêŽâá©áŽ¥á€áŠâµáááêŽê€á©áâµãâµãâµáá©ê€êŽáááâµá€áŠáŽ¥á©âêŽá±áŽÐNð§·âµâêŽááð§·á©ÐNááá±áŽâµê³á©ááð§·OᎥâµ)
|
âµá±áŽááÐNá©ð§·ááêŽââµð§·ÐNá±áŽêŽâá©áŽ¥á€áŠâµáááêŽê€á©áâµãâµãâµáá©ê€êŽáááâµá€áŠáŽ¥á©âêŽá±áŽÐNð§·âµâêŽááð§·á©ÐNááá±áŽâµ=int(max(âµð§·ì·á€áŠêŽá±áŽì·âµãâµãâµì·á±áŽêŽá€áŠì·ð§·âµ,âµì·ð§·âêŽá¯âµãâµãâµá¯êŽâð§·ì·âµ)*âµáŽ¥Oð§·ááá©ê³âµá±áŽááÐNá©ð§·ááêŽââµð§·ÐNá±áŽêŽâá©áŽ¥á€áŠâµáááêŽê€á©áâµãâµãâµáá©ê€êŽáááâµá€áŠáŽ¥á©âêŽá±áŽÐNð§·âµâêŽááð§·á©ÐNááá±áŽâµê³á©ááð§·OᎥâµ)
|
||||||
âµâáOì·ááá±áŽáŽ¥ì·ð§·âµð§·ÐNáOááâµáá±áŽê€êŽßŠâµãâµãâµßŠêŽê€á±áŽáâµááOáÐNð§·âµð§·ì·áŽ¥á±áŽááì·Oáââµ=min(âµð§·ì·á€áŠêŽá±áŽì·âµãâµãâµì·á±áŽêŽá€áŠì·ð§·âµ,âµì·ð§·âêŽá¯âµãâµãâµá¯êŽâð§·ì·âµ)*64
|
âµâáOì·ááá±áŽáŽ¥ì·ð§·âµð§·ÐNáOááâµáá±áŽê€êŽßŠâµãâµãâµßŠêŽê€á±áŽáâµááOáÐNð§·âµð§·ì·áŽ¥á±áŽááì·Oáââµ=âµð§·ì·á€áŠêŽá±áŽì·âµãâµãâµì·á±áŽêŽá€áŠì·ð§·âµ*âµì·ð§·âêŽá¯âµãâµãâµá¯êŽâð§·ì·âµ/16
|
||||||
|
|
||||||
âµá±áŽá€áŠá©áêŽãáᎥOê³ááÐNá©áŽ¥ð§·ãá±áŽááÐNá©ð§·ááêŽâãâá±áŽáá±áŽ8á©áãá±áŽáߊêŽð§·áááâµãâµãâµáááð§·êŽßŠáá±áŽãáá©8á±áŽáá±áŽâãâêŽááð§·á©ÐNááá±áŽãð§·áŽ¥á©ÐNááê³OᎥáãêŽáá©á€áŠá±áŽâµ=âµäººßŠááÐNâµãâµãâµÐNááߊ人âµ.zeros_like(âµá±áŽá€áŠá©áêŽãâá±áŽáá±áŽ8á©áãá±áŽáߊêŽð§·áááâµãâµãâµáááð§·êŽßŠáá±áŽãáá©8á±áŽáá±áŽâãêŽáá©á€áŠá±áŽâµ,dtype=âµäººßŠááÐNâµãâµãâµÐNááߊ人âµ.float32)
|
âµá±áŽá€áŠá©áêŽãáᎥOê³ááÐNá©áŽ¥ð§·ãá±áŽááÐNá©ð§·ááêŽâãâá±áŽáá±áŽ8á©áãá±áŽáߊêŽð§·áááâµãâµãâµáááð§·êŽßŠáá±áŽãáá©8á±áŽáá±áŽâãâêŽááð§·á©ÐNááá±áŽãð§·áŽ¥á©ÐNááê³OᎥáãêŽáá©á€áŠá±áŽâµ=âµäººßŠááÐNâµãâµãâµÐNááߊ人âµ.zeros_like(âµá±áŽá€áŠá©áêŽãâá±áŽáá±áŽ8á©áãá±áŽáߊêŽð§·áááâµãâµãâµáááð§·êŽßŠáá±áŽãáá©8á±áŽáá±áŽâãêŽáá©á€áŠá±áŽâµ,dtype=âµäººßŠááÐNâµãâµãâµÐNááߊ人âµ.float32)
|
||||||
|
|
||||||
|
LoadingâŠ
Reference in New Issue
Block a user