Skip to content
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

Add handling of multiple labels per input image file #65

Merged
merged 3 commits into from
Aug 17, 2016

Conversation

fedorov
Copy link
Member

@fedorov fedorov commented Aug 17, 2016

Supposed to resolve #44

@fedorov
Copy link
Member Author

fedorov commented Aug 17, 2016

@che85 let me know if you have concerns

note that this PR will require changes to the webapp to handle list of segment attributes lists

@che85
Copy link
Member

che85 commented Aug 17, 2016

@fedorov I worked on the schema as well and made corrections based on the validation tools. It would make more sense to first merge my changes and adapt your changes to it...

@fedorov
Copy link
Member Author

fedorov commented Aug 17, 2016

sure, are they very extensive? go ahead with the PR

I am working on another PR to add jsonlint testing

re QIICR#44: segmentAttributes in metadata now consists of the outer list, where each item
corresponds to the input itkImage, and is a list itself. The items of the inner
list contain the attributes of the segments, identified by labelID which maps to
the input image pixel values.
will need to remove later, and put all attributes within at the top level, but
too much work to do it now (need to change JSON handler, web app, converter ...)
@fedorov
Copy link
Member Author

fedorov commented Aug 17, 2016

rebased to current master

{
"$ref": "https://raw.githubusercontent.com/qiicr/dcmqi/master/doc/common-schema.json#/definitions/PN"
"$ref":"https://raw.githubusercontent.com/qiicr/dcmqi/master/doc/common-schema.json#/definitions/PN"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fedorov Why are you removing all those spaces? It's general json syntax to have

"key": "value" 

Even when you use a library for generating JSON it always comes out that way. Maybe it's a matter of taste but let's try keep it one way.

http://www.jsonschemavalidator.net/ also formats the way I mentioned.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's just what the formatter I used generated: https://jsonformatter.curiousconcept.com/

I will run in http://www.jsonschemavalidator.net/ and update

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh didn't know that you are also using one :)

@fedorov fedorov merged commit f014740 into QIICR:master Aug 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Communication of files + label IDs should be fixed
2 participants