Opened 13 years ago

Closed 13 years ago

#115 closed defect (fixed)

stat section can only use pixels in image subsection

Reported by: MatthewWhiting Owned by: MatthewWhiting
Priority: normal Milestone: Release-2.0
Component: Input Version: 1.1.11
Severity: normal Keywords:
Cc:

Description

If the statsec option is used when a subsection of the image is being read, and part of the statsec lies outside the image region, then those pixels will *not* be included in the stats calculation.

In particular, if the two sections are disjoint, then there will be no pixels used in the stats calculation!

Need a way of reading just the pixels in the stats section first to find the stats.

Change History (2)

comment:1 Changed 13 years ago by MatthewWhiting

Status: newassigned
Version: 1.1.101.1.11

comment:2 Changed 13 years ago by MatthewWhiting

Resolution: fixed
Status: assignedclosed

Implemented changes in [818]. There is a new function in the Section class that returns the intersection of a Section with another. We use this to trim the statsec to just those pixels that overlap with the image section.

This works well, so closing ticket.

Note: See TracTickets for help on using tickets.