Opened 13 years ago

Closed 13 years ago

#2740 closed defect (fixed)

Cutline with blend don't blend correctly for some pixel rows

Reported by: asgerpetersen Owned by: warmerdam
Priority: normal Milestone: 1.6.1
Component: Algorithms Version: 1.6.0
Severity: normal Keywords: cutline blending
Cc:

Description

I think

    int iY, iX;
    double dfLastDist = 0;
    
    for( iY = 0; iY < nYSize; iY++ )
    {
        for( iX = 0; iX < nXSize; iX++ )

should be

    int iY, iX;
    double dfLastDist;
    
    for( iY = 0; iY < nYSize; iY++ )
    {
        dfLastDist = 0;
        for( iX = 0; iX < nXSize; iX++ )

To reset the distance shortcut when processing a new row. Otherwise odd blending results occur.

Change History (1)

comment:1 Changed 13 years ago by warmerdam

Keywords: cutline blending added
Milestone: 1.6.1
Resolution: fixed
Status: newclosed

Agreed ... corrected in trunk (r15956) and 1.6 branch (r15957).

Note: See TracTickets for help on using tickets.