What are the .seg files in this repository for and how to use them?
MichaelLoibl opened this issue · comments
import scipy.io
import numpy as np
import cv2
mat = scipy.io.loadmat('001.mat')
np_seg = mat['groundTruth'][0][0][0]
(y, x) = np.where(np_seg == 2)
np_seg[y, x] = 255
(y, x) = np.where(np_seg == 1)
np_seg[y, x] = 0
cv2.imwrite('./001.png', np_seg)
print()
I still have the same Question actually, what are the .seg files. do they have different info than the .mat files ?
I have same Question for .seg files
Any tutorial to process .seg file, please? Or how can I convert them into png or other image formats?
Answer #3 (comment) seems helpless for me, any explanation?
I made it clear, use the code in #3 (comment) to process mat file in groundTruth
folder. Just forget .seg file.
I made it clear, use the code in #3 (comment) to process mat file in
groundTruth
folder. Just forget .seg file.
There is only 118 gt? But the jpg in image have 300+ pictures, how to get the rest of gt?