Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
SULI 2021
AI4HDR_GUI
Commits
bf3481fb
Commit
bf3481fb
authored
Jan 28, 2021
by
Josh
Browse files
db naming
parent
fa6ca750
Changes
3
Hide whitespace changes
Inline
Side-by-side
HDRData.py
View file @
bf3481fb
...
...
@@ -106,8 +106,8 @@ class HDRFileDB( HDRDatabaseInterface ):
Directory Names
'''
self
.
BASE_FOLDER
=
"Images"
self
.
SLICE_FOLDER
=
"S
liced
"
self
.
PROCESSED_FOLDER
=
"P
rocessed
"
self
.
SLICE_FOLDER
=
"S
L
"
self
.
PROCESSED_FOLDER
=
"P
ROC
"
self
.
dbBasePath
=
Path
(
dbLoc
).
resolve
()
self
.
imagesPath
=
self
.
dbBasePath
.
joinpath
(
self
.
BASE_FOLDER
)
...
...
@@ -157,7 +157,7 @@ class HDRFileDB( HDRDatabaseInterface ):
processedList
=
[]
slicedDir
=
[
p
for
p
in
self
.
_idToBasePath
(
sliceId
).
rglob
(
sliceId
)
][
0
]
processedDir
=
slicedDir
.
joinpath
(
"Processed"
)
processedDir
=
slicedDir
.
joinpath
(
self
.
PROCESSED_FOLDER
)
for
processedImage
in
processedDir
.
iterdir
():
processedId
=
processedImage
.
name
displayName
=
self
.
_idParts
(
processedImage
.
name
)[
self
.
PROC_TYPE
]
...
...
@@ -187,7 +187,7 @@ class HDRFileDB( HDRDatabaseInterface ):
def
getMSLabelArray
(
self
,
sliceId
:
str
)
->
np
.
array
:
baseDir
=
self
.
_idToBasePath
(
sliceId
)
labelsIdentifier
=
"{}-{}-{}-S
liced-MeanShiftLabels-Processed
.npy"
.
format
(
self
.
_idSliceSize
(
sliceId
),
labelsIdentifier
=
"{}-{}-{}-S
L-MSLAB-PROC
.npy"
.
format
(
self
.
_idSliceSize
(
sliceId
),
self
.
_idXPix
(
sliceId
),
self
.
_idYPix
(
sliceId
)
)
msLabelsPath
=
[
p
for
p
in
baseDir
.
rglob
(
"*{}"
.
format
(
labelsIdentifier
)
)
][
0
]
...
...
@@ -201,7 +201,7 @@ class HDRFileDB( HDRDatabaseInterface ):
sliceDir
=
[
p
for
p
in
baseDir
.
rglob
(
sliceId
)
][
0
]
processedDir
=
sliceDir
.
joinpath
(
self
.
PROCESSED_FOLDER
)
newMaskDir
=
processedDir
.
joinpath
(
"{}-{}-P
rocessed
"
.
format
(
sliceId
,
maskName
)
)
newMaskDir
=
processedDir
.
joinpath
(
"{}-{}-P
ROC
"
.
format
(
sliceId
,
maskName
)
)
newMaskPath
=
newMaskDir
.
joinpath
(
"{}.{}"
.
format
(
newMaskDir
.
name
,
self
.
_idImageExt
(
sliceId
)
)
)
print
(
"====================="
)
print
(
sliceId
)
...
...
@@ -261,4 +261,4 @@ class HDRFileDB( HDRDatabaseInterface ):
return
self
.
imagesPath
.
joinpath
(
"{}-{}-{}-{}"
.
format
(
self
.
_idUid
(
imageId
),
self
.
_idImageExt
(
imageId
),
self
.
_idName
(
imageId
),
"Original"
)
)
\ No newline at end of file
"OR"
)
)
\ No newline at end of file
__pycache__/HDRData.cpython-37.pyc
0 → 100644
View file @
bf3481fb
File added
__pycache__/appUtils.cpython-37.pyc
0 → 100644
View file @
bf3481fb
File added
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment