我创建了一些代码以可视化方式显示单元/内核中的平均梯度方向。我的问题是:
// tried putting this in sub report header but unable to pass it anywhere above the sub report and when adding it to the top level report it duplicates the pages.
WhilePrintingRecords;
Shared NumberVar RunningTotal;
RunningTotal:= 0;
RunningTotal:= Count({ScheduledComponents_ReportData;1.Amount});
的值归一化为0-359
之间的值? * Alt方法来计算平均梯度方向:
0-179
绘制渐变方向:
hMean = cv2.mean(sobelX)
vMean = cv2.mean(sobelY)
avg_dir = math.atan2(-vMean[0], hMean[0])