Showing posts with label Halftoning. Show all posts
Showing posts with label Halftoning. Show all posts

Friday, February 12, 2010

Put white dots on black background when it is an uniform dark area

around 40000 black dots and around 36000 white dots

This demo uses over 54000 black dots(saving 20000 dots) and around 3000 white dots.
Put white dots on chosen uniform dark area. It did work better for showing dark area. But the library for showing vector graphics I chosen only supports changing the whole background color not partially. So there might be a problem for showing vector graphics.




The white uniform area shows where the modified area is.

Tuesday, July 21, 2009

Better for tone change but artefacts are too clear.

Algorithms:
1. Sort each pixels based on the brightness into a heap.
2. For each pixel grows the spiral
%% accum is the accumulation; target is the goal; counter is
%%for a long spiral over the limit
(1): initial states: accum = 0; target = 255; counter = 0;
(2): grow the spiral( for each step the real codes as follows)
%% full; stop
if(accum >= target) break;
Ii = ppTemp[v.y][v.x].GetGreyscaleValue ();

%% return the increase based on the accumulation function
out = accumulate(I0,Ii, m_ppDoneMap[v.y][v.x]);
accum = accum + out;%% accumulation
%% update the original image and the done map
in = min(255,Ii + out);
ppTemp[v.y][v.x] = COLOR(in, in, in);
m_ppDoneMap[v.y][v.x] =0;// flag for used pixels
%% the error at the last pixel
if (accum > target)
{
in = Ii-(accum-out-target);%% too much
ppTemp[v.y][v.x] = COLOR(in,in, in);
}
%% counter for the length of the spiral
counter++;
%% too long and cut it out; might have a problem
if(counter>spiralmask.size ()) break;
---------------------------------------------
%% the accumulation function
int accumulation(...)
{
Ti = 80;
if(255-Ii less than Ti)
in = 255 - Ii;
else
in = Ti;
return in;
}
---------------------------
Intensity response diagram based on the ramp image
Some results



Friday, July 3, 2009

Still not good


The traditional error diffusion algorithm

Much better than our results! More smoother!! Also smoother than the results from "structure-aware halftoning" paper. But the results from the paper is clearer to show the edges.



the Floyd-Steinberg algorithm

Thursday, July 2, 2009

Several questions about halftoning


1. What kind of effects for haltoning is perfect(or for printing)?--blue-noise property? What's an interesting halftoning?
2. Density means? Density and harmonity?
3. The constrast for halftoning?
4. Maintain the original structure
5. The pattern creation(means new pattern): how to deal with the original structure or pattern?
6. What do you think about the above image?

Another more related paper: digital halftoning with space filling curves by Velho and Gomes; and some halftoning by fractal path

Tuesday, June 30, 2009

Test images from "Structure-Aware Halftoning" by Pang et. al

Compared with those results in the paper, even there are not much percentage pixels used in our tree result, it looks not worse than their result. (After scaling it and looking at it again, I have to say it is worse than their result.) Our result for the cat example looks worse than their result. But the good thing is that at least our method did not destroy the structure for the cat a lot. Size(440 by 373)
Size(660 by 560)

59783(36.42%) pixels are used.
216678 (58.625% )pixels are used

Monday, June 29, 2009

A related paper about halftoning

I am not sure if you have read this paper "POLYOMINO BASED DIGITAL HALFTONING" by VANDERHAEGHE and OSTROMOUKHOV. Similar to our term the structure of masks, they use the term the threshold structure, but based on so-called polyomino. The reason for mentioning this is that we might want to give a theory-tied scheme like this paper.

For comparison, here is the Lena's halftoning effect from current results as follows.