Foveonizator (Was: Bayer - Foveon comparison)

Started Nov 26, 2008 | Discussions
Shop cameras & lenses ▾
jtra Contributing Member • Posts: 839
Foveonizator (Was: Bayer - Foveon comparison)

Hi all,

several people have asked me to get the code for the color transformation from "canon 50d" colors to "foveon" colors which I did here:
http://forums.dpreview.com/forums/read.asp?forum=1027&message=30123905

I originally had my code written in Ruby language using RMagick library, but it was quite slow and it could be hard to set up. Now I have something better to play with.

Download Processing 1.0 from http://processing.org/
(I use it on Linux, but you can use it on Windows or Mac too).
It is a cool tool for scripting images, animation and interaction.

... and paste this script in the code pane:
http://jtra.cz/download/foveonize1.txt

Save with "File-> Save as" so that you know the directory where to place input file, then click Run icon.

It will read input.jpg from current directory, display a portion of transformed image and saves full transformed image into result.jpg

forceofnature
forceofnature Contributing Member • Posts: 528
Re: Foveonizator (Was: Bayer - Foveon comparison)

Thanks for the Link. Looks like an interesting tool. I too use Linux so its nice to see all the linux tools.
--
Proud Pentax K10D and Hayabusa Owner

 forceofnature's gear list:forceofnature's gear list
Sony Alpha 7R II Sigma 24-105mm F4 DG OS HSM Tamron SP 150-600mm F/5-6.3 Di VC USD Canon EF 50mm f/1.8 STM Zeiss Batis 18mm F2.8 +1 more
LMC54 Forum Pro • Posts: 11,808
Re: Foveonizator (Was: Bayer - Foveon comparison)

Kinda like putting stripes on the bonnet of a hummer and saying it looks almost like a Mini Cooper.

Regards,
Larry

miketuthill
miketuthill Veteran Member • Posts: 3,196
Re: Foveonizator (Was: Bayer - Foveon comparison)

Speaking of being offensive!:-)

LMC54 wrote:

Kinda like putting stripes on the bonnet of a hummer and saying it
looks almost like a Mini Cooper.

Regards,
Larry

 miketuthill's gear list:miketuthill's gear list
Sony a77 II Sony Alpha 7 II Sony DT 16-105mm F3.5-5.6 Sony DT 18-70mm F3.5-5.6 Sony 75-300mm F4.5-5.6 +14 more
John Sheehy Forum Pro • Posts: 18,497
Re: Foveonizator (Was: Bayer - Foveon comparison)

jtra wrote:

Hi all,

several people have asked me to get the code for the color
transformation from "canon 50d" colors to "foveon" colors which I did
here:

Might as well go all the way and simulate the spatial sampling as best as possible.

In Photoshop,

1) Take a high-MP Bayer or "foveonized" bayer image and upsample (NOT nearest
neighbor) to 7920*5280.

2) Downsize to 5280*3520 with nearest neighbor.

3) Pixelate|Mosaic to 2x2 tiles.

4) Downsize to 2640*1760 with nearest neighbor.

Now you've got a close look to Sigma sub-sampling. Works well with the 50D and its weak AA filter.

-- hide signature --

John

oluv Senior Member • Posts: 1,973
Re: Foveonizator (Was: Bayer - Foveon comparison)

examples, examples please

 oluv's gear list:oluv's gear list
Panasonic Lumix DMC-GM1 Panasonic Lumix G Vario 7-14mm F4 ASPH Panasonic Lumix G 20mm F1.7 ASPH Panasonic Leica Summilux DG 25mm F1.4 Olympus M.Zuiko Digital 45mm F1.8 +1 more
alisD Contributing Member • Posts: 627
I never knew

photography could be so super duper exciting!

-- hide signature --

my makeshift collection of photographs:

http://www.flickriver.com/photos/nome_alice/

John Sheehy Forum Pro • Posts: 18,497
Re: I never knew

alisD wrote:

photography could be so super duper exciting!

I never knew that some people would consider an image with missing content as being better ...

-- hide signature --

John

Tiffles Veteran Member • Posts: 4,970
Re: I never knew
 Tiffles's gear list:Tiffles's gear list
Sigma DP1 Sigma DP1 Merrill Kodak DCS Pro 14n Nikon D700 Sigma SD10 +6 more
John Sheehy Forum Pro • Posts: 18,497
Re: I never knew

Tiffles wrote:

Never heard of minimalism?

I've heard of it, but it is a style, an effect, not a quantitative quality.

-- hide signature --

John

yvind Strm Veteran Member • Posts: 4,130
Re: I never knew

What about "Less is more"?

John Sheehy wrote:

Tiffles wrote:

Never heard of minimalism?

I've heard of it, but it is a style, an effect, not a quantitative
quality.

-- hide signature --

John

Tiffles Veteran Member • Posts: 4,970
Re: I never knew
 Tiffles's gear list:Tiffles's gear list
Sigma DP1 Sigma DP1 Merrill Kodak DCS Pro 14n Nikon D700 Sigma SD10 +6 more
John Sheehy Forum Pro • Posts: 18,497
Re: I never knew

yvind Strm wrote:

What about "Less is more"?

It's a figure of speech, which makes sense in some contexts, but makes no sense in others. If you need less, you can always drop something later. You can't get it back later if you drop it from the beginning; IOW, you can't get the space between the Sigma subsamples, once they have been taken.

-- hide signature --

John

alisD Contributing Member • Posts: 627
wrong

it's a qualitative quantity.

...and you're just making photography even more boring with every post.

-- hide signature --

my makeshift collection of photographs:

http://www.flickriver.com/photos/nome_alice/

John Sheehy Forum Pro • Posts: 18,497
Re: wrong

alisD wrote:

it's a qualitative quantity.

...and you're just making photography even more boring with every post.

My posts here have nothing to do with photography per se. They have to do with imaging.

You know absolutely nothing about what I think about photography from this and many other threads.

This is ridiculous, really, if you drop your biases and step outside and look in. Someone started talking about how the 50D has "resolution" but not detail, which they said were different. Yes they're different, but they're different facets of the same thing. That person was completely FOS.

I showed how the 50D did, in fact, have a lot more real detail than it was originally credited for. I also suggested a method to make the 50D or similar bayer camera get a sigma-esque look, and certainly enough, it involved losing detail, and part of the witness of the focal plane.

You can always do interesting photography with a poor imager, and boring photography with a perfect imager. That has never been a point of debate with me.

-- hide signature --

John

Truman Prevatt
Truman Prevatt Veteran Member • Posts: 5,501
Re: Foveonizator (Was: Bayer - Foveon comparison)

Take an analog signal, f(t) and take its Fourier transform F(w). Now take the signal g(t)=f(t+s) where s is either and advance (s> 0) or delay (s

The same thing holds for digitized images, but the concept is easier to see in one dimension. Therefore, an image can be calculated for any pixel location. This allows a side by side pixel layout to be used and to shift the locations so each RGB channel are effectively sampled on the same grid, not offset grids like the CFA. This in effect provides a "Fovenized" image from a CFA. Of course this needs to be done with the RAW prior to demoasizing. Take for example a 20 MP CFA. The lowest sampling is the R and B channels of 5 MP each. Take 5 MP of the Green and shift all the R, G, B channels to the same spatial grid and you have an 15 MP Foveon, or 5X3.

The reason it isn't done - it quite computationally expensive processing. But in theory it is not difficult.

-- hide signature --
 Truman Prevatt's gear list:Truman Prevatt's gear list
Nikon D800E Fujifilm X-Pro2 Nikon AF Nikkor 50mm f/1.4D Nikon AF Nikkor 85mm f/1.4D Nikon AF Nikkor 135mm f/2D DC +11 more
Keyboard shortcuts:
FForum MMy threads