When decompressing/decoding, use the TJPF_GRAY
format, it discards the colour information and only the Y (luminescence) remains.
See the this part of the API for reference, as well as that part if you are willing to transform it, or this function if you are willing to decode it directly into a gray-scale image.