Commit 460f4f72 authored by josh's avatar josh
Browse files

minor change

parent 22a5b713
......@@ -118,14 +118,19 @@ def importAndProcess( imgPath: str, dbPath: str, newImgName: str ):
msSegArr = processedList[i][3]
msLabImg = processedList[i][4]
msSegFileDir = sliceProcPath.joinpath( "{}-{}-{}.{}".format( sliceBaseName,
"MeanShiftSegmentation",
"Processed",
fileExt ) )
msLabFileDir = sliceProcPath.joinpath( "{}-{}-{}".format( sliceBaseName,
"MeanShiftLabels",
"Processed" ) )
msSegDir = sliceProcPath.joinpath( "{}-{}-{}".format( sliceBaseName,
"MeanShiftSegmentation",
"Processed" ) )
msSegFileDir = msSegDir.joinpath( "{}.{}".format( msSegDir.name, fileExt ) )
msLabFileDir = msSegDir.joinpath( "{}-{}-{}".format( sliceBaseName,
"MeanShiftLabels",
"Processed" ) )
#msLabFileDir = msLabDir.joinpath( "{}".format( msLabDir.name ) )
os.mkdir( msSegDir )
#os.mkdir( msLabDir )
# Save processed image and label array
cv2.imwrite( str( msSegFileDir ), msSegArr )
np.save( str( msLabFileDir ), msLabImg )
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment