-
Notifications
You must be signed in to change notification settings - Fork 1.4k
add grey image reader #1001
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
add grey image reader #1001
Conversation
// Class.forName("java.awt.color.ICC_ColorSpace") | ||
// Class.forName("sun.java2d.cmm.lcms.LCMS") | ||
// ColorSpace.getInstance(ColorSpace.CS_GRAY).toRGB(Array[Float](0, 0, 0)) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code clean
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
// ColorSpace.getInstance(ColorSpace.CS_GRAY).toRGB(Array[Float](0, 0, 0)) | ||
|
||
def apply(scaleTo: Int = Image.NO_SCALE, normalize: Float = 255f) | ||
: Transformer[LocalLabeledImagePath, LabeledGreyImage] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add comments
* return LabeledBGRImage and the file name. | ||
*/ | ||
object LocalGreyImgReaderWithName { | ||
Class.forName("javax.imageio.ImageIO") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you make the name as one variable in LabeledGreyImage, otherwise seems there are many duplicate codes
LGTM |
@jenniew As the PR has been approved, when will you merge the PR? And any PR validation msg? |
What changes were proposed in this pull request?
Add grey image reader
How was this patch tested?
Add unit test case to DataSetSpec
Related links or issues (optional)
fixed #970