//朴素Dijkstra 边权都是正数 稠密图:点和边差的比较多
#include<cstring>
#include<iostream>
#include<algorithm>
using namespace std;
const int N = ;
int n, m;
int g[N][N];//邻接矩...
Obtain the pixel indices of each superpixel
sp_label_matrix=fs.slic(img_rgb, n_segments=400, compactness=10, sigma=1, enforce_connectivity=False)
sp_label_vector=sp_label_matrix.reshape(1,-1)
sp_...