}
for (x=0; x < (ssize_t) image->columns; x++)
{
- wavelet_pixels[i]=(float) p[channel]; break;
+ wavelet_pixels[i]=(float) p[channel];
i++;
p+=GetPixelChannels(image);
}
register ssize_t
x;
+ ssize_t
+ offset;
+
q=GetCacheViewAuthenticPixels(noise_view,0,y,noise_image->columns,1,
exception);
if (q == (Quantum *) NULL)
status=MagickFalse;
break;
}
+ offset=GetPixelChannelOffset(noise_image,GetPixelChannelChannel(image,
+ channel));
for (x=0; x < (ssize_t) image->columns; x++)
{
float
pixel;
pixel=wavelet_pixels[i]+wavelet_pixels[low_pass+i];
- q[channel]=ClampToQuantum(pixel);
+ q[offset]=ClampToQuantum(pixel);
i++;
q+=GetPixelChannels(noise_image);
}