solarize

22 visualizaciones (últimos 30 días)
maha sandhya
maha sandhya el 24 de Feb. de 2012
Editada: Walter Roberson el 23 de Sept. de 2025 a las 20:09
how to solarize an image in matlab

Respuestas (2)

Bjorn Gustavsson
Bjorn Gustavsson el 24 de Feb. de 2012
Editada: Walter Roberson el 23 de Sept. de 2025 a las 20:09
Then it should just be to generate the gray-level (or separate R, G and B level) mappings that take you from 0-1 to 0-1.
qdSolarize = @(Igray) (1-0.7*sin((0.2+linspace(0,0.8,1001)*pi)).^8)
Isolarized = qdSolarize(I);
You'd have to fidget around with the mapping till you get whatever you want.
HTH.

DGM
DGM el 23 de Sept. de 2025 a las 20:00
FWIW, MIMT has a solarization tool that has presets for both a smooth curve and a typical hard vee curve. It also supports arbitrary curve specification.
A = imread('trailer.jpg'); % a photo (RGB)
B = solarize(A); % default curve
C = solarize(A,'vee'); % hard vee curve
D = solarize(A,'in',[0 0.10 0.70 0.94 1],'out',[0 0.10 0.90 0.08 0]); % custom
% show all of them
outpict = [A; B; C; D];
imshow(outpict)

Categorías

Más información sobre Solar Power en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by