Exception in Foundation.LUT.Apply()

I recently noticed that Foundation.LUT.Apply() throws an exception when the number of gray values in an image is lower than the number of LUT levels.

A common occurrence is probably when a predefined LUT is applied to a an image with no data, be it because of lighting, integration time or a lacking object in a laser triangulation setup.

It would be good to have this case already handled inside the API.

Hi @MarSch,

I can’t reproduce this.
Could you clarify which overload of LUT.Apply you are using?