Search Comments and Ratings

go

   
Date File Comment by Comment Rating
15 Jul 2014 RGB2Lab Converts an image from the RGB color space to the CIELAB color space. Author: Mark Ruzon

Mark Ruzon (view profile)

surachet jurakurd

5
12 May 2013 RGB2Lab Converts an image from the RGB color space to the CIELAB color space. Author: Mark Ruzon

Mark Ruzon (view profile)

Atanas

Atanas (view profile)

how exactly to use this file (to check if it works with some pic), sry for the question, but I am new in this and I need color space segmentation with Lab color space

1
06 Dec 2012 RGB2Lab Converts an image from the RGB color space to the CIELAB color space. Author: Mark Ruzon

Mark Ruzon (view profile)

Hyunsung

This file is actually sRGB to Lab? sorry i am confused

Comment only
22 Oct 2012 RGB2Lab Converts an image from the RGB color space to the CIELAB color space. Author: Mark Ruzon

Mark Ruzon (view profile)

Tim Zaman

This assumes an sRGB color profile, most certianly not always the case.

2
13 Dec 2011 RGB2Lab Converts an image from the RGB color space to the CIELAB color space. Author: Mark Ruzon

Mark Ruzon (view profile)

Faranak Sh

Thank You!

Comment only
13 Dec 2011 Lab2RGB Converts an image from the CIELAB color space into the RGB color space. Author: Mark Ruzon

Mark Ruzon (view profile)

Faranak Sh

Thank You!

Comment only
06 Apr 2011 RGB2Lab Converts an image from the RGB color space to the CIELAB color space. Author: Mark Ruzon

Mark Ruzon (view profile)

Tim Zaman

you can only successfully convert if you know what color profile [RGB] is used. I guess you took sRGB?

Comment only
15 Sep 2010 Lab2RGB Converts an image from the CIELAB color space into the RGB color space. Author: Mark Ruzon

Mark Ruzon (view profile)

PUST rahman

Very helpful...Thank you...

Comment only
07 Jan 2010 RGB2Lab Converts an image from the RGB color space to the CIELAB color space. Author: Mark Ruzon

Mark Ruzon (view profile)

Abe Lau

I guess "makecform" is the native command Uwe was referencing to

Comment only
04 Aug 2009 REPLICATE Create a larger array by expanding each element of an array into a subarray. Author: Mark Ruzon

Mark Ruzon (view profile)

Russell

I used replicate.m to generate some padding on a string cell array.

AA = {'blank'};
myLabels = {'fish','beer'};
myLabels = [ myLabels (replicate (AA,1,3)) ]
myLabels =
'fish' 'beer' 'blank' 'blank' 'blank'

4
08 May 2009 RGB2Lab Converts an image from the RGB color space to the CIELAB color space. Author: Mark Ruzon

Mark Ruzon (view profile)

Mark Ruzon

Mark Ruzon (view profile)

What native MATLAB implementation? I see lab2double but not the reverse.

Comment only
07 May 2009 RGB2Lab Converts an image from the RGB color space to the CIELAB color space. Author: Mark Ruzon

Mark Ruzon (view profile)

Uwe

Uwe (view profile)

I don't see the advantage over the native Matlab implementation.

To make it nicer, you should make the whitepoint and the colorspace selectable. (now it is D65 and sRGB).

Comment only
08 Dec 2008 REPLICATE Create a larger array by expanding each element of an array into a subarray. Author: Mark Ruzon

Mark Ruzon (view profile)

Mark Ruzon

Mark Ruzon (view profile)

This is a more elegant and faster solution for the 2D case. The next version of the file will have this solution. Unfortunately, KRON gives 2D results when Y is 3D, so a different approach is needed in the 3D case.
A = reshape(1:6,[1 3 2]);
S = [2 2 2];
A(kron(reshape(1:numel(A),size(A)),ones(S)))
replicate(A,S)

Comment only
06 Dec 2008 REPLICATE Create a larger array by expanding each element of an array into a subarray. Author: Mark Ruzon

Mark Ruzon (view profile)

Jos (10584)

Jos (10584) (view profile)

Indexing with KRON is equally flexible:
% data
A = {12 {'yy' 'xxx'} ; 'aaa' rand(2)}
nr = 3 ;
nc = 5 ;
% engine
B = A(kron(reshape(1:numel(A),size(A)),ones([nr nc])))

Comment only
05 Dec 2008 REPLICATE Create a larger array by expanding each element of an array into a subarray. Author: Mark Ruzon

Mark Ruzon (view profile)

Mark Ruzon

Mark Ruzon (view profile)

KRON works for floats and doubles but not integral types, structs, or cell arrays. KRON relies on multiplication, while REPLICATE uses only indexing, thus making it more flexible.

Comment only
05 Dec 2008 REPLICATE Create a larger array by expanding each element of an array into a subarray. Author: Mark Ruzon

Mark Ruzon (view profile)

Jos (10584)

Jos (10584) (view profile)

Nice try, but KRON can handle the job perfectly, for instance, kron(A,ones([2, 3]))

Comment only

Contact us