Skip to content

Commit d37d65c

Browse files
author
Alireza Khodamoradi
committed
correction for xfdst on return
1 parent c598282 commit d37d65c

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

applicationCode/unitTests/testPython/testXfAbsdiff.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
print("Start SW loop")
7272
startSW=time.time()
7373
for i in range(numberOfIterations):
74-
dstSW = cv2.absdiff(src1=imgY1, src2=imgY2) #absdiff on ARM
74+
cv2.absdiff(src1=imgY1, src2=imgY2, dst=dstSW) #absdiff on ARM
7575
stopSW=time.time()
7676
print("SW loop finished")
7777

@@ -80,7 +80,7 @@
8080
print("Start HW loop")
8181
startPL=time.time()
8282
for i in range(numberOfIterations):
83-
xFdst = xv2.absdiff(src1=xFimgY1, src2=xFimgY2, dst=xFdst) #absdiff offloaded to PL, working on physically continuous numpy arrays
83+
xv2.absdiff(src1=xFimgY1, src2=xFimgY2, dst=xFdst) #absdiff offloaded to PL, working on physically continuous numpy arrays
8484
stopPL=time.time()
8585
print("HW loop finished")
8686

applicationCode/unitTests/testPython/testXfAdd.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
print("Start SW loop")
7373
startSW=time.time()
7474
for i in range(numberOfIterations):
75-
dstSW = cv2.add(imgY1, imgY2) #add on ARM
75+
cv2.add(imgY1, imgY2, dst=dstSW) #add on ARM
7676
stopSW=time.time()
7777
print("SW loop finished")
7878

@@ -81,7 +81,7 @@
8181
print("Start HW loop")
8282
startPL=time.time()
8383
for i in range(numberOfIterations):
84-
xFdst = xv2.add(src1=xFimgY1, src2=xFimgY2, dst=xFdst) #accumulateWeight offloaded to PL, working on physically continuous numpy arrays
84+
xv2.add(src1=xFimgY1, src2=xFimgY2, dst=xFdst) #accumulateWeight offloaded to PL, working on physically continuous numpy arrays
8585
stopPL=time.time()
8686
print("HW loop finished")
8787

applicationCode/unitTests/testPython/testXfCalcHist.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,14 @@
6767
print("Start SW loop")
6868
startSW=time.time()
6969
for i in range(numberOfIterations):
70-
dstSW = cv2.calcHist([imgY1], [0], None, [256], [0,255]) #calcHist on ARM
70+
cv2.calcHist([imgY1], [0], None, [256], [0,255], hist=dstSW) #calcHist on ARM
7171
stopSW=time.time()
7272
print("SW loop finished")
7373

7474
print("Start HW loop")
7575
startPL=time.time()
7676
for i in range(numberOfIterations):
77-
xFhist = xv2.calcHist(images=[xFimgY1], channels=[0], mask=None, histSize=[256], ranges=[0,255], hist=xFhist) #calcHist offloaded to PL, working on physically continuous numpy arrays
77+
xv2.calcHist(images=[xFimgY1], channels=[0], mask=None, histSize=[256], ranges=[0,255], hist=xFhist) #calcHist offloaded to PL, working on physically continuous numpy arrays
7878
stopPL=time.time()
7979
print("HW loop finished")
8080

applicationCode/unitTests/testPython/testXfCornerHarris.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,14 @@
6868
print("Start SW loop")
6969
startSW=time.time()
7070
for i in range(numberOfIterations):
71-
dstSW = cv2.cornerHarris(imgY1, 2, 3, 0.04) #cornerHarris on ARM
71+
cv2.cornerHarris(imgY1, 2, 3, 0.04, dst=dstSW) #cornerHarris on ARM
7272
stopSW=time.time()
7373
print("SW loop finished")
7474

7575
print("Start HW loop")
7676
startPL=time.time()
7777
for i in range(numberOfIterations):
78-
xFdst = xv2.cornerHarris(src=xFimgY1, blockSize=3, ksize=3, k=0.14, dst=xFdst, borderType=cv2.BORDER_DEFAULT) #cornerHarris offloaded to PL, working on physically continuous numpy arrays
78+
xv2.cornerHarris(src=xFimgY1, blockSize=3, ksize=3, k=0.14, dst=xFdst, borderType=cv2.BORDER_DEFAULT) #cornerHarris offloaded to PL, working on physically continuous numpy arrays
7979
stopPL=time.time()
8080
print("HW loop finished")
8181

applicationCode/unitTests/testPython/testXfInitUndistortRectifyMap.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,14 @@
8989
print("Start SW loop")
9090
startSW=time.time()
9191
for i in range(numberOfIterations):
92-
mapX, mapY = cv2.initUndistortRectifyMap(cameraMatrixLeft, distCoeffsLeft, Rleft, newCameraMatrixLeft, (width, height), cv2.CV_32FC1, mapX, mapY) # on ARM
92+
cv2.initUndistortRectifyMap(cameraMatrixLeft, distCoeffsLeft, Rleft, newCameraMatrixLeft, (width, height), cv2.CV_32FC1, mapX, mapY) # on ARM
9393
stopSW=time.time()
9494
print("SW loop finished")
9595

9696
print("Start HW loop")
9797
startPL=time.time()
9898
for i in range(numberOfIterations):
99-
xFmapX, xFmapY = xv2.initUndistortRectifyMap(cameraMatrixLeft, distCoeffsLeft, Rleft, newCameraMatrixLeft, (width, height), cv2.CV_32FC1, xFmapX, xFmapY)# offloaded to PL, working on physically continuous numpy arrays
99+
xv2.initUndistortRectifyMap(cameraMatrixLeft, distCoeffsLeft, Rleft, newCameraMatrixLeft, (width, height), cv2.CV_32FC1, xFmapX, xFmapY)# offloaded to PL, working on physically continuous numpy arrays
100100
stopPL=time.time()
101101
print("HW loop finished")
102102

applicationCode/unitTests/testPython/testXfIntegral.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
print("Start SW loop")
7171
startSW=time.time()
7272
for i in range(numberOfIterations):
73-
dstSW = cv2.integral(imgY1, dstSW) #integral on ARM
73+
cv2.integral(imgY1, dstSW) #integral on ARM
7474
stopSW=time.time()
7575
print("SW loop finished")
7676

0 commit comments

Comments
 (0)