private static ImageProcessor RGBtoLab(ImageProcessor ip) { int n = ip.getPixelCount(); byte[] L = new byte[n]; byte[] a = new byte[n]; byte[] b = new byte[n]; ColorThresholder.getLab(ip, L, a, b); ColorProcessor cp = new ColorProcessor(ip.getWidth(),ip.getHeight()); cp.setRGB(L,a,b); return cp; }
private static ImageProcessor RGBtoLab(ImageProcessor ip) { int n = ip.getPixelCount(); byte[] L = new byte[n]; byte[] a = new byte[n]; byte[] b = new byte[n]; ColorThresholder.getLab(ip, L, a, b); ColorProcessor cp = new ColorProcessor(ip.getWidth(),ip.getHeight()); cp.setRGB(L,a,b); return cp; }
cp.getHSB(hSource,sSource,bSource); else if(colorSpace==LAB) getLab(cp, hSource,sSource,bSource); else if(colorSpace==YUV) getYUV(cp, hSource,sSource,bSource);
cp.getHSB(hSource,sSource,bSource); else if(colorSpace==LAB) getLab(cp, hSource,sSource,bSource); else if(colorSpace==YUV) getYUV(cp, hSource,sSource,bSource);
cp2.getHSB(hsSource,ssSource,bsSource); else if(colorSpace==LAB) getLab(cp2, hsSource,ssSource,bsSource); else if(colorSpace==YUV) getYUV(cp2, hsSource,ssSource,bsSource);
cp2.getHSB(hsSource,ssSource,bsSource); else if(colorSpace==LAB) getLab(cp2, hsSource,ssSource,bsSource); else if(colorSpace==YUV) getYUV(cp2, hsSource,ssSource,bsSource);