IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Opened 20 years ago

Closed 20 years ago

Last modified 20 years ago

#765 closed defect (fixed)

row,col / x,y / i,j

Reported by: eugene Owned by: David.Robbins@…
Priority: high Milestone:
Component: mathtypes Version: 0.11.0
Severity: normal Keywords:
Cc:

Description

I am quite concerned about the inconsistency in psLib of col,row, x,y, etc in
the code. In a simple examination, I have found two cases where these concepts
are mis-used. Just to be extremely clear: x (and the index i) should always be
used to refer to a COLUMN and y should always be used to refer to a ROW.
Arguments to functions which refer to both x and y should always be in the order
(x,y). Coefficients associated with an X refer to an image COLUMN, etc. The
ONLY place where we have to be very careful about the order is in the
image->data.XXX[row][col] elements. The image elements are in the order [ROW][COL].

I have found these types of errors in:

psImageSet
psImageGet
psImageFitPolynomial

I find it hard to understand why the testing that is being done has not caught
these errors.

Change History (3)

comment:1 by Paul Price, 20 years ago

Resolution: fixed
Status: newclosed

I have fixed psImageGet, psImageSet and psImageFitPolynomial in CVS head.

comment:2 by Paul Price, 20 years ago

Keywords: VERIFIED added

Bug has been resolved.... closing.

comment:3 by Paul Price, 20 years ago

Keywords: VERIFIED removed

Bugs have been fixed... closing.

Note: See TracTickets for help on using tickets.