Author Topic: PCL: CFA to RGB module (CFA2RGB)  (Read 19080 times)

Offline NKV

  • PTeam Member
  • PixInsight Guru
  • ****
  • Posts: 677
PCL: CFA to RGB module (CFA2RGB)
« on: 2015 March 11 10:32:43 »
Hi,
The module convert Gray CFA image to Bayer RGB image.

Do you see Drizzle Debayer in BatchPreProcessing script?
OK, now Drizzle Debayer independent from BatchPreProcessing. 

How to:
Preprocessing
1) use any Debayer method to debayer Original (usually Calibrated  Gray CFA not aligned images  *_c_cc.fit) to NotAlignedRGB image.
2) use StarAlignment(NotAlignedRGB) to create AlignedRGB and create .drz files linked to NotAlignedRGB and to AlignedRGB images.
3) use ImageIntegration(AlignedRGB) to update a rejection information in .drz files. Note: ImageIntegration button "Add Drizzle Files"

Now is magic:
0) Warning: backup NotAlignedRGB, because we will overwrite it.
1) Use the CFA2RGB + ImageContainer(Original) to create NotAlignedRGB_Bayer images.
Set name of output NotAlignedRGB_Bayer equal to NotAlignedRGB. note: Batch Debayer Script add prefix "debayer_" to name.
2) Replace NotAlignedRGB by NotAlignedRGB_Bayer, if you not do it in previous step.
3) now .drz files linked to NotAlignedRGB_Bayer and we can use DrizzleIntegration.

Source Code v1.1.1
bin Win64
bin Linux64
« Last Edit: 2016 February 01 22:31:40 by NKV »

Offline gvanhau

  • PixInsight Old Hand
  • ****
  • Posts: 345
Re: PCL: CFA to RGB module (CFA2RGB)
« Reply #1 on: 2015 March 11 11:29:27 »
Hello Nicolay

Thank you for your continous contribution to this comunity.
This new module seems very usefull.

I have a couple of questions about the procedure:

- In step 2 of preprocessing,  I supose that you are meaning debayered originals, are you?
- In step 2 of magic,  the images replaced are the debayered originals? or am I completely wrong?

Regards
Geert

Geert Vanhauwaert

Offline gianpri

  • Member
  • *
  • Posts: 56
Re: PCL: CFA to RGB module (CFA2RGB)
« Reply #2 on: 2015 March 11 12:22:57 »
I can not download the module "The webpage is not available"
Thank You
Giovanni

Offline NKV

  • PTeam Member
  • PixInsight Guru
  • ****
  • Posts: 677
Re: PCL: CFA to RGB module (CFA2RGB)
« Reply #3 on: 2015 March 11 23:39:52 »
- In step 2 of preprocessing,  I supose that you are meaning debayered originals, are you?
- In step 2 of magic,  the images replaced are the debayered originals?
Yes and Yes.
Instruction updated. Thank you.
 
preprocessing - it's ordinary steps: ordinary  preprocessing, ordinary registration, ordinary integration. Do it as usual.
magic - it's method to replace NotAlignedRGB image by NotAlignedRGB_Bayer.

I can not download the module "The webpage is not available"
Updated.

PS
We can replace the images linked in P{}, because .drz file linked by file path only. 
.drz file consist from:
Code: [Select]
P{path to NotAligned image}
T{path to Aligned image}
D{width, height}
H{alignment matrix}
rejection data {}


Offline gvanhau

  • PixInsight Old Hand
  • ****
  • Posts: 345
Re: PCL: CFA to RGB module (CFA2RGB)
« Reply #4 on: 2015 March 23 13:46:16 »
Hello

I tested this this weekend, and the procedure worked ok.

I had two isues, but I think they have notting to do with your module:

1.- The first time I run it, in the image container y deselected "never overwrite originals" in order that the originals where replaced by this module. this did not work; it deted the original and forced a 01 at the end of the file name. for this, I had to sve the result in another directory in order to preserve the original name and then copy that to the original place.

2.- after running the process I did a drizle integration (bayer drizle); the first time I had enabled the pixel rejection...and got an almost black piture as result (almos all pixels where jected?) On the seccond run I deselected this option, I got the result I was looking for.

Regards
Geert
Geert Vanhauwaert

Offline NKV

  • PTeam Member
  • PixInsight Guru
  • ****
  • Posts: 677
Re: PCL: CFA to RGB module (CFA2RGB)
« Reply #5 on: 2015 March 26 02:09:33 »
I had two isues, but I think they have notting to do with your module:
You are absolutely right. Those problems not in the module.
1 - in the ImageContainet.
2 - in the DrizzleIntegration.
 :D

Offline Philippe B.

  • PixInsight Old Hand
  • ****
  • Posts: 399
    • CIEL AUSTRAL
Re: PCL: CFA to RGB module (CFA2RGB)
« Reply #6 on: 2015 April 21 09:11:50 »
I am little confuse with the way to preprocess the image


If I follow old method
- Calibrate images
- Debayer images
- Align debayered images with drizzle option
- integrate aligned_debayered images with drizzle option
- integrate drizzle files


Now, it is ?
- calibrate images
- CFA-RGB image
- Align CFA-RGB images with drizzle option (I have a problem, no star detected on several images)  :sad:  where in VNG method it is well detected
- integrate aligned drizzle CFA-RGB images
- integrate drizzle files


Thanks
Cheers








Offline NKV

  • PTeam Member
  • PixInsight Guru
  • ****
  • Posts: 677
Re: PCL: CFA to RGB module (CFA2RGB)
« Reply #7 on: 2015 April 21 09:26:20 »
Now, it is ?
- calibrate images
- CFA-RGB image
- Align CFA-RGB images with drizzle option (I have a problem, no star detected on several images)
It's because you try to do something strange. I not understand what you do and why.

Any way, the method in post#1 is only DrizleDebayer&Integration. You understand?
See "magic steps 0,1,2,3".

Offline Philippe B.

  • PixInsight Old Hand
  • ****
  • Posts: 399
    • CIEL AUSTRAL
Re: PCL: CFA to RGB module (CFA2RGB)
« Reply #8 on: 2015 April 21 11:20:33 »
oh yes, that's clear !

in fact, it is
1
2
3
then (magic 0)
4 (correspond to magic step 1
5 (magic 2)
6 (magic 3)

Offline NKV

  • PTeam Member
  • PixInsight Guru
  • ****
  • Posts: 677
Re: PCL: CFA to RGB module (CFA2RGB)
« Reply #9 on: 2015 April 22 00:22:44 »
 :)

Offline multiweb

  • Newcomer
  • Posts: 25
    • Some of my Pics :)
Re: PCL: CFA to RGB module (CFA2RGB)
« Reply #10 on: 2015 August 20 16:54:03 »
Is there a new version of this DLL for the latest PI version? For some reason it won't install in 01.08.04. Thanks.
Also when will we be able to bayer drizzle outside the pre-processing script? I don't use PI to calibrate.
Marc Aragnou.

Offline Philippe B.

  • PixInsight Old Hand
  • ****
  • Posts: 399
    • CIEL AUSTRAL
Re: PCL: CFA to RGB module (CFA2RGB)
« Reply #11 on: 2015 August 25 02:04:38 »
The only possibility I found is to use the script to generate calibrated and bayered RGB and debayered images. Then go manually for alignment, integration and drizzle.
The script generates the bayered and debayered image.


Maybe you could even only generate bayered RGB and debayered ones when only imput your manually calibrated images (if needed)


But, that's right, a real official stand alone "Bayer Drizzle" function (or option in integration menu) should be welcome !
...Juan... if you read us  ;)  ... put on "todo" list  >:D [size=78%] [/size]

Offline Philippe B.

  • PixInsight Old Hand
  • ****
  • Posts: 399
    • CIEL AUSTRAL
Re: PCL: CFA to RGB module (CFA2RGB)
« Reply #12 on: 2015 August 29 23:34:19 »

Hello
Just to illustrate the need for a stand alone process (or option in debayer process and drizzle integration to identify bayer and debayered files name and path)


This bayerdrizzle rocks  :tongue:






Offline NKV

  • PTeam Member
  • PixInsight Guru
  • ****
  • Posts: 677
Re: PCL: CFA to RGB module (CFA2RGB)
« Reply #13 on: 2016 January 18 09:02:53 »
Binaries updated for PixInsight 1.8.4.1195
Download in post #1

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: PCL: CFA to RGB module (CFA2RGB)
« Reply #14 on: 2016 February 03 00:58:39 »
The same as before: Can this be in our GitHub repository -> release it as an official module?
Juan Conejero
PixInsight Development Team
http://pixinsight.com/