mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-23 13:10:18 +08:00
Added testcase
This commit is contained in:
@@ -27,9 +27,9 @@ class RAG(nx.Graph):
|
||||
def rag_meancolor(img,labels):
|
||||
|
||||
img = util.img_as_ubyte(img)
|
||||
if img.ndim == 3 :
|
||||
if img.ndim == 4 :
|
||||
return _construct.construct_rag_meancolor_3d(img,labels)
|
||||
elif img.ndim == 2 :
|
||||
elif img.ndim == 3 :
|
||||
return _construct.construct_rag_meancolor_2d(img,labels)
|
||||
else :
|
||||
raise ValueError("Image dimension not supported")
|
||||
|
||||
Reference in New Issue
Block a user