Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork8.1k
Rewrite of image infrastructure#5718
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes from1 commit
cf11aea3b7d1bbc9cae504a053020aa222a0793aa21384c7c9148c7f820479efad84c864e84ea0be04c0a8643f15df79f0b436f1adfbc39d9d3b468f9d85347b32cd86e60ebfdc66ed07cccfb35073f6e625e80ac778cfc9fe6658d61ac2ab3318fdffbbf05fbb55c834d6cc84c5a3bf944820883f4bc9d5030a455c1abbfe376c45266fde9285c3ae2b2bbeb8946834e43c8b8665697d21a6ed2d2a1266d3518a0b8d6930f43f68cd0e7e0e62832fe7d54d53e532e1cfad8d9e52c26f0469ab7b391f0889365c17f2f3759827d1f5be66debd521cdd6b22a5fff1d66da6c00bc9b2425File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -61,16 +61,31 @@ | ||
| def composite_images(images, renderer, magnification=1.0): | ||
| """ | ||
| Composite a number of RGBA images into one. The images are | ||
| composited in the order in which they appear in the `images` list. | ||
| Parameters | ||
| ---------- | ||
| images : list of Images | ||
| Each must have a `make_image` method. For each image, | ||
| `can_composite` should return `True`, though this is not | ||
| enforced by this function. Each image must have a purely | ||
| affine transformation with no shear. | ||
| renderer : RendererBase instance | ||
| magnification : float | ||
| The additional magnification to apply for the renderer in use. | ||
Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. This docstring doesn't describe what it returns. Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Might also want to make it clear whose responsibility it will be to handle zorder. MemberAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Good points. Done. | ||
| Returns | ||
| ------- | ||
| tuple : image, offset_x, offset_y | ||
| Returns the tuple: | ||
| - image: A numpy array of the same type as the input images. | ||
| - offset_x, offset_y: The offset of the image (left, bottom) | ||
| in the output figure. | ||
| """ | ||
| if len(images) == 0: | ||
| return np.empty((0, 0, 4), dtype=np.uint8), 0, 0 | ||