outBlockList = []
// endmember solutions
if self.applyScaling:
for endmember in results[0]:
endmember = endmember.reshape(-1, inBlock.shape[-1])
endmember.clip(min=0, out=endmember)
endmember *= (1.0 / endmember.max())
After Change
else:
resid = resid.reshape(1, -1, inBlock.shape[-1]) // extra dimension to match shape of endmembers
outBlocks = np.row_stack((endmembers, resid)) // resid can be either RSS or R2
// output pixel arrays of endmembers & residuals
pixelBlocks["output_pixels"] = outBlocks.astype(props["pixelType"])