The classic K-SVD algorithm works well on grayscale images, but what is best way to treat 3-channel images? Does anybody have a matlab code with examples of this?
Hi Kim,
That is an interesting question,
I think the best way to do it is by working on illuminance only!
In Matlab you can do this by something like this:
======Code Begin========
% read test image
im_l = imread('input.bmp');
% change color space, work on illuminance only
im_l_ycbcr = rgb2ycbcr(im_l);
im_l_y = im_l_ycbcr(:, :, 1);
im_l_cb = im_l_ycbcr(:, :, 2);
im_l_cr = im_l_ycbcr(:, :, 3);
%use im_l_y to in your KSVD code to get im_KSVD_y
%re generate RGB image
im_h_ycbcr = zeros(size(im_KSVD_y));
im_h_ycbcr(:, :, 1) = im_KSVD_y;
im_h_ycbcr(:, :, 2) = im_l_cb ;
im_h_ycbcr(:, :, 3) = im_l_cr ;
im_h = ycbcr2rgb(uint8(im_h_ycbcr));
% show the images
figure, imshow(im_h);
======Code End========
Hope this helps
Ala'
I would like to understand potential safety concerns while handling SEB in the lab. Especially while working in animal house facility. Would like to know precautions for handling. Sigma MSDS...
07 August 2024 6,034 3 View
During low-temperature testing, new diffraction peaks that appear could be indicative of several phenomena. In one of our tests, we observed notable new peaks around 40° and 45° in a specific...
06 August 2024 726 3 View
The political participation of the Kirat Rai community in Nepal has evolved significantly over time: Historical Context Historically, the Kirat Rai people, like many indigenous groups in Nepal,...
05 August 2024 5,950 1 View
I am new to Micromechanics and having similar problem with understanding the implementation of the formula's. I would appreciate if anyone can guide me on how to go about getting a scalar value...
30 July 2024 969 0 View
Hello, colleagues. Recently, I have been working on a metal processing simulation with my UMAT in Abaqus. I have outlined the corresponding simulation, but I keep encountering issues that cause...
30 July 2024 7,062 1 View
Some Staphylococcus aureus strains Inhibit the growth of Mycobacteria in Mueller Hinton Agar medium containing 10% OADC. Do some Staphylococcus aureus strains have in vitro antimycobacterial activity?
29 July 2024 10,023 2 View
Please, what is the memory consumption of the Matlab function quad tree decomposition procedure [S = qtdecomp(I)] with respect to the input set I?
27 July 2024 5,455 2 View
all math can be traversed by code? all math can be translate to code?
26 July 2024 9,530 0 View
Hello, I am a research scholar currently working on a project involving image segmentation, and I am interested in using differential evolution for this purpose . I would greatly appreciate it if...
25 July 2024 9,926 1 View
In running two-dimensional gel electrophoresis on bacterial protein, some spots that appear to match a protein sequence have a significantly more acidic isoelectric point than the calculated pI....
24 July 2024 8,076 3 View