-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
@cjerzak I am fiddling around with the acquireImageFxn to adapt it to my simulated image data, where the bands and dimensions are different from how acquireImageFxn is defined in your simulated data.
This is the code in your simulated data
# Define acquireImageFxn
acquireImageFxn <- function(keys) {
m_ <- FullImageArray[match(keys, KeysOfImages),,,]
if(length(keys) == 1) {
m_ <- array(m_, dim = c(1L, dim(m_)[1], dim(m_)[2], dim(m_)[3]))
}
return(m_)
}
These function that feeds WriteTFRecord.
if(reSaveTFRecord) {
causalimages::WriteTfRecord(
file = TFRecordName_im,
uniqueImageKeys = unique(KeysOfObservations),
acquireImageFxn = acquireImageFxn
)
}
But how do we handle varying image classes dynamically?
I will see if I can help improving this part of the code if you do not have a readily available piece of general code already,
Metadata
Metadata
Assignees
Labels
No labels