You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def split_regions(axis):
regions = []
min_axis = 0
for i in range(1, axis.shape[0]):
if axis[i] != axis[i - 1] + 1:
region = axis[min_axis:i] #获取空白区域的某一个轴的坐标
min_axis = i
regions.append(region)
return regions
This discussion was converted from issue #10870 on May 27, 2024 04:56.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
由于split_regions把空白区域进行切分,但最后的空白区域没有添加到我的regions中,这样剪切的范围永远不能取到最后的空白区域,为什么要这么设计,是不是bug啊?
def split_regions(axis):
regions = []
min_axis = 0
for i in range(1, axis.shape[0]):
if axis[i] != axis[i - 1] + 1:
region = axis[min_axis:i] #获取空白区域的某一个轴的坐标
min_axis = i
regions.append(region)
return regions
Beta Was this translation helpful? Give feedback.
All reactions