Skip to content

Commit 3421cad

Browse files
Add image name to the file CorregistrationError.png (1) (#37)
Signed-off-by: soleneantoine1 <[email protected]>
1 parent bce7a49 commit 3421cad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

geoCosiCorr3D/geoTiePoints/misc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import pandas
1010

1111

12-
def opt_report(reportPath, snrTh=0.9, debug=False, plotError=True):
12+
def opt_report(reportPath, image_path, snrTh=0.9, debug=False, plotError=True):
1313
df = pandas.read_csv(reportPath)
1414

1515
totalNbLoop = list(df["nbLoop"])[-1]
@@ -80,7 +80,7 @@ def opt_report(reportPath, snrTh=0.9, debug=False, plotError=True):
8080
ax.set_xlabel('#iterations')
8181
ax.set_ylabel("Error [pix]")
8282
# plt.show()
83-
fig.savefig(os.path.join(os.path.dirname(reportPath), "CoregistrationError.png"), dpi=400)
83+
fig.savefig(os.path.join(os.path.dirname(reportPath), f'{image_path}_CoregistrationError.png'), dpi=400)
8484

8585
return loopList[indexMin], totalNbLoop, np.min(avgErrorList)
8686

0 commit comments

Comments
 (0)