Skip to content

Add or update example visuals #359

Open
@tbirdso

Description

@tbirdso

Examples tend to be more compelling and easier to understand when the developer can compare input and output images, and sometimes even interact with the data. A "good first issue" for a contributor could be to choose one of the following examples, read the available code snippet to understand its purpose, and then add one or two visuals to aid in learning.

When selecting visuals to add, consider the following:

  • Static examples such as still 2D images can be particularly useful for developers that are briefly visiting an example. Consider adding at a minimum a 2D input image and 2D output image to load in the user's browser alongside the example.
  • In many cases example images may be more compelling when they represent simplified real-world data rather than contrived instances. Consider using existing scientific data samples such as BrainProtonDensitySliceBorder20.png, cthead1, or HeadMRVolume.mha to illustrate image filter effects, or even add your own public scientific image data.
  • In cases where it is reasonable to generate data, such as visualizing kernels, consider using a library such as matplotlib.pyplot.imshow to construct output visualizations.
  • For 3D cases consider generating screenshots with 3D Slicer, itkwidgets, or ParaView Glance.
  • Please upload data accompanying examples to its respective ITKExamples folder at data.kitware.com (https://data.kitware.com/#collection/57b5c9e58d777f126827f5a1/folder/58bcc0998d777f0aef5d111c). Ask maintainers such as @thewtex or @tbirdso for help if you encounter trouble in creating the appropriate example folder.

Existing example source files such as https://github.com/InsightSoftwareConsortium/ITKSphinxExamples/tree/master/src/Core/Common/AddNoiseToBinaryImage can be referenced for learning how to add new figures to .rst documentation.

The following is a non-exhaustive list of examples that could benefit from new or updated visuals:

Metadata

Metadata

Assignees

Labels

Good first issueA good issue for community members new to contributingtype:DataChanges to example data (usually displayed images)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions