Project: datamanagement
Issue DM-2634: add new image stretch algorithm to Firefly visualization 
There is a need to include two new stretch algorithms, which are asinh and power law gamma. The algorithm is as follow: * asinh ## input zp: zero point of data mp: maximum point of data dr: dynamic range scaling factor of data. It ranges from 1-100,000 bp: black point for image display wp: white point for image display ## calculate rescaled data value rd = dr *(xPix - zp)/mp ## calculate normalized stretch data value nsd = asinh(rd)/asinh(mp-zp) ## calculate display pixel value dPix = 255 * (nsd-bp)/wp Note: The bp, wp values specify how far outside of the scale data one wants the image to display. By default, setting bp=0 and wp=dr. * power law gamma ## input \br zp: zero point of data mp: maximum point of data gamma: gamma value for exponent ## calculate rescaled data value rd = xPix - zp ## calculate normalized stretch data value nsd = rd^(1/gamma) / (mp0zp)^(1/gamma) ## calculate display pixel data value dPix = 255 * nsd
Story points: 8