@@ -1535,7 +1535,7 @@ def display360ODS2__(t, posCam, posEye, dirCam, offscreen, exportRez, stereoShif
1535
1535
# display360 (offscreen=1, 2 or 7)
1536
1536
# type360=0 (360 degres), =1 (180 degres)
1537
1537
#==============================================================================
1538
- def display360 (t , type360 = 0 , blurSigma = - 1. , ** kwargs ):
1538
+ def display360 (t , type360 = 0 , ** kwargs ):
1539
1539
"""Display for 360 images."""
1540
1540
import KCore .Vector as Vector
1541
1541
import Converter .Mpi as Cmpi
@@ -1564,7 +1564,7 @@ def display360(t, type360=0, blurSigma=-1., **kwargs):
1564
1564
display360__ (t , posCam , posEye , dirCam , offscreen , exportRez , kwargs )
1565
1565
# Create the 360 image from cube images
1566
1566
if Cmpi .rank == 0 :
1567
- panorama (export , exportRez , type360 = type360 , blurSigma = blurSigma )
1567
+ panorama (export , exportRez , type360 = type360 )
1568
1568
Cmpi .barrier () # wait for completion
1569
1569
1570
1570
elif stereo == 1 : # stereo ODS internal (only offscreen=1 or 7)
@@ -1635,14 +1635,14 @@ def display360(t, type360=0, blurSigma=-1., **kwargs):
1635
1635
posCam0 = Vector .add (posCam , dv )
1636
1636
display360__ (t , posCam0 , posEye , dirCam , offscreen , exportRez , kwargs )
1637
1637
if Cmpi .rank == 0 :
1638
- panorama (export1 , exportRez , type360 = type360 , blueSigma = blurSigma )
1638
+ panorama (export1 , exportRez , type360 = type360 )
1639
1639
Cmpi .barrier () # wait for completion
1640
1640
1641
1641
# left eye
1642
1642
posCam0 = Vector .sub (posCam , dv )
1643
1643
display360__ (t , posCam0 , posEye , dirCam , offscreen , exportRez , kwargs )
1644
1644
if Cmpi .rank == 0 :
1645
- panorama (export2 , exportRez , type360 = type360 , blueSigma = blurSigma )
1645
+ panorama (export2 , exportRez , type360 = type360 )
1646
1646
Cmpi .barrier () # wait for completion
1647
1647
1648
1648
# stitch
@@ -1683,7 +1683,7 @@ def display360(t, type360=0, blurSigma=-1., **kwargs):
1683
1683
1684
1684
# assemble 6 cube images en une image panoramique
1685
1685
# type360=0 -> 360, type360=1 -> 180
1686
- def panorama (export , exportRez , type360 = 0 , blurSigma = - 1. ):
1686
+ def panorama (export , exportRez , type360 = 0 ):
1687
1687
res = exportRez .split ('x' )
1688
1688
if type360 == 0 : resx = int (res [0 ]); resy = int (res [1 ])
1689
1689
else : resx = int (res [1 ]); resy = int (res [1 ])
@@ -1705,7 +1705,6 @@ def panorama(export, exportRez, type360=0, blurSigma=-1.):
1705
1705
C ._addVars (a7 , ['r' ,'g' ,'b' ,'a' ])
1706
1706
a7f = C .getFields ('nodes' , a7 , api = 3 )[0 ]
1707
1707
CPlot .cplot .panorama (a1 , a2 , a3 , a4 , a5 , a6 , a7f , type360 )
1708
- CPlot .cplot .blur (a7f , blurSigma )
1709
1708
C .convertPyTree2File (a7 , export )
1710
1709
return a7
1711
1710
0 commit comments