question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Subject with multiple images

See original GitHub issue

Thank you for sharing great library! I would like to ask, is it possible create a Subject with multiple images? Something like that:

subj = Subject(t1=Image(), t2=Image(), age=‘45’) subj[‘t1’].append(Image()) subj[‘age’].append(‘46’)

or

subj = Subject(t1=[Image(), Image()], t2=[Image(),Image()], age=[‘45’, ‘46’])

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
fepegarcommented, Apr 26, 2020

Would this work for you?

for patient in patients:
    subject_dict = {'t1': Image(patient.image_path, torchio.INTENSITY, age=45)}
    for visit in visits:
        visit_id = get_visit_id_from_visit(visit)  # defined somewhere
        subject_dict[visit_id] = Image(visit.image_path, torchio.INTENSITY, age=visit.age)
    subject = Subject(subject_dict)
0reactions
fepegarcommented, Apr 26, 2020

No worries!

Read more comments on GitHub >

github_iconTop Results From Across the Web

One subject, multiple images: A creative exercise to ...
There are more than just one creative exercise that we can do that will help us improve our photography. This on is a...
Read more >
Photoshop Same Subject Multiple Times: Tutorial
Make your family and friends appear several times in an image with this fun Photoshop tutorial. These images were made in Photoshop, but...
Read more >
Multiple subjects in images : r/StableDiffusion - Reddit
Nearly every image that Stable Diffusion generates from any prompt I give has multiples of the subject. ... Multiple subjects in images.
Read more >
57 Multiple Subjects Stock Photos, Images & Pictures
Download Multiple Subjects stock photos. Free or royalty-free photos and images. Use them in commercial designs under lifetime, perpetual & worldwide rights ...
Read more >
Street Photography Composition Lesson #13: Multiple-Subjects
A great way you can incorporate multiple-subjects in your photo (while still having a main subject) is to capture a moment where eeryone...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found