Quantcast
Channel: Separate the luminance from the chrominance in an image - Mathematica Stack Exchange
Browsing all 4 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Answer by b3m2a1 for Separate the luminance from the chrominance in an image

Here's something that uses the "LAB" colorspace:butterfly = ColorConvert[Import["https://i.stack.imgur.com/2L3Hc.png"], "LAB";To kill the color channels:ImageMultiply[butterfly, {1, 0, 0}]Or to put...

View Article



Image may be NSFW.
Clik here to view.

Answer by kglr for Separate the luminance from the chrominance in an image

img = Import["https://i.stack.imgur.com/2L3Hc.png"]You can also use ImageMultiply or ImageApply as follows:ImageMultiply[ColorConvert[img, "CMYK"], {1, 1, 1, 0}]ImageApply[{1, 1, 1, 0} # &,...

View Article

Image may be NSFW.
Clik here to view.

Answer by David G. Stork for Separate the luminance from the chrominance in...

I think I figured it out:This re-combines the CMYK channels, but with the black channel effectively set to 0.

View Article

Image may be NSFW.
Clik here to view.

Separate the luminance from the chrominance in an image

My goal is to separate a full-color image into its luminance and chrominance ("color") components and display them as two images: 1) a black and white image (for the luminance) and 2) a color image...

View Article
Browsing all 4 articles
Browse latest View live




Latest Images