Go Back   IceInSpace > Equipment > Software and Computers
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread
  #1  
Old 29-10-2010, 09:05 PM
Bassnut's Avatar
Bassnut (Fred)
Narrowfield rules!

Bassnut is offline
 
Join Date: Nov 2006
Location: Torquay
Posts: 5,065
Nearest neighbour v bicubic b spline

Damb, there I was viewing a very interesting thread on the above, prepared a post, and bingo, thread gone !.

Dunno, I maybe im just stupid and just cant find it. Anyway, here are 2 mean stacked images, with each of the above applied, uncompressed scaled TIFFs with no data reject or any processing of any kind. Average amount of noise.

Id like to understand the thoretical arguments with reference to actual images, if the original posters could please peruse and comment.
Reply With Quote
  #2  
Old 29-10-2010, 09:32 PM
Bassnut's Avatar
Bassnut (Fred)
Narrowfield rules!

Bassnut is offline
 
Join Date: Nov 2006
Location: Torquay
Posts: 5,065
Well, I cant see any diff, but have always use bicubic. I didnt upsize on this, perhaps I should have to compare. Anyway, cant see the reason for the delete. Robust post perhaps, but not worthy of a delete, Im sure both partys could handle it , the subject was worthy of a continuance .
Reply With Quote
  #3  
Old 29-10-2010, 09:39 PM
Moon's Avatar
Moon (James)
This sentence is false

Moon is offline
 
Join Date: Oct 2008
Location: Melbourne
Posts: 1,158
As I mentioned in the now deleted thread, I'll try to do a test of the Adam Block nearest neighbor method (using the CCDStack data reject procedures) and compare it to Bicubic b-spline. I'm not at all sure if I can do a meaningful test, but I'll give it a try. I'm also not the person to ask about the full mathematical background I might add - that would be the guy that did this masterpiece.

The thing that worries me about the nearest neighbor is the way it distorts the image. But every time I try it, it seems to work well.

James
Reply With Quote
  #4  
Old 29-10-2010, 09:42 PM
avandonk's Avatar
avandonk
avandonk

avandonk is offline
 
Join Date: Aug 2005
Location: Melbourne
Posts: 4,786
We used to have weekly meetings at CSIRO and I have called my superiors all the names you can think of and they did the same to me. It was about free and frank exchange of opinion. No matter how wrong you were!

But this is a nice zone so from now on I will only think very nice pink thoughts.

Bert
Reply With Quote
  #5  
Old 29-10-2010, 09:55 PM
rat156's Avatar
rat156
Registered User

rat156 is offline
 
Join Date: Aug 2005
Location: Melbourne
Posts: 1,696
No Bert,

'twas me who complained. You were rude.

I always use bicubic when registering images, seems more accurate. Though my images are serious oversampled, so it probably doesn't matter.

WRT the hot pixels, remove them straight after image calibration, this works much better than anything else.

Cheers
Stuart

BTW I think you owe the 36 poster an apology.
Reply With Quote
  #6  
Old 29-10-2010, 09:55 PM
Bassnut's Avatar
Bassnut (Fred)
Narrowfield rules!

Bassnut is offline
 
Join Date: Nov 2006
Location: Torquay
Posts: 5,065
It is not a data reject process in CCD stack2, its a resample after align, so it makes sence it would make a difference in resizing. The samples I posted were all bin 1, perhaps it would make more of a diff with a mix of bin1-bin2 subs.

Quote:
Originally Posted by Moon View Post
As I mentioned in the now deleted thread, I'll try to do a test of the Adam Block nearest neighbor method (using the CCDStack data reject procedures) and compare it to Bicubic b-spline. I'm not at all sure if I can do a meaningful test, but I'll give it a try. I'm also not the person to ask about the full mathematical background I might add - that would be the guy that did this masterpiece.

The thing that worries me about the nearest neighbor is the way it distorts the image. But every time I try it, it seems to work well.

James
Reply With Quote
  #7  
Old 29-10-2010, 09:56 PM
Bassnut's Avatar
Bassnut (Fred)
Narrowfield rules!

Bassnut is offline
 
Join Date: Nov 2006
Location: Torquay
Posts: 5,065
Geez Stuart, why did you bother, aint it up to the target?

Quote:
Originally Posted by rat156 View Post
No Bert,

'twas me who complained. You were rude.

I always use bicubic when registering images, seems more accurate. Though my images are serious oversampled, so it probably doesn't matter.

WRT the hot pixels, remove them straight after image calibration, this works much better than anything else.

Cheers
Stuart

BTW I think you owe the 36 poster an apology.
Reply With Quote
  #8  
Old 29-10-2010, 10:04 PM
multiweb's Avatar
multiweb (Marc)
ze frogginator

multiweb is offline
 
Join Date: Oct 2007
Location: Sydney
Posts: 22,079
Quote:
Originally Posted by Bassnut View Post
It is not a data reject process in CCD stack2, its a resample after align, so it makes sence it would make a difference in resizing. The samples I posted were all bin 1, perhaps it would make more of a diff with a mix of bin1-bin2 subs.
I use nearest neighbourg all the time. If I have a lot of subs it works alright. On two subs it's not good. You'd use bicubic b-spline. Nearest neighbourg will move entire blocks of your subs to align them, like solid tiles without resampling or blurring the lot. So you keep the noise sharp and it's easier for the data rejection algorithm to paint outliers. If you use bicubic b-spline you'll interpolate all those pixels in between the stars and smear the noise. So it's harder for the data rejection algo to do its job. That's my understanding from Adam Block's tutorials.
Reply With Quote
  #9  
Old 29-10-2010, 10:05 PM
avandonk's Avatar
avandonk
avandonk

avandonk is offline
 
Join Date: Aug 2005
Location: Melbourne
Posts: 4,786
Quote:
Originally Posted by Moon View Post
As I mentioned in the now deleted thread, I'll try to do a test of the Adam Block nearest neighbor method (using the CCDStack data reject procedures) and compare it to Bicubic b-spline. I'm not at all sure if I can do a meaningful test, but I'll give it a try. I'm also not the person to ask about the full mathematical background I might add - that would be the guy that did this masterpiece.

The thing that worries me about the nearest neighbor is the way it distorts the image. But every time I try it, it seems to work well.

James
There is nothing wrong with nearest neighbour. We have computers now that can fit a curve to the pixels based on a localised curve that gives a far better approximation for interpolation. A bicubic curve does this extremely well.

You cannot make a silk purse out of a sows ear. If the image is very noisy you are wasting your time.

Bert the grump!
Reply With Quote
  #10  
Old 29-10-2010, 10:11 PM
Moon's Avatar
Moon (James)
This sentence is false

Moon is offline
 
Join Date: Oct 2008
Location: Melbourne
Posts: 1,158
Quote:
It is not a data reject process in CCD stack2, its a resample after align, so it makes sence it would make a difference in resizing. The samples I posted were all bin 1, perhaps it would make more of a diff with a mix of bin1-bin2 subs.
I know the resample happens with the align - the thing Adam Block points out is that if you use 'nearest neighbor' then you can do better data rejection on the stack after **the align**. A hot pixel will still look hot (statistically) whereas if you align with something like Bicubic B-spline, the hot pixel is now averaged out a bit and won't look so hot, and thus harder to reject.
If you dither the images, then this will make the hot pixels stand out like .... well you know the saying.
James
Reply With Quote
  #11  
Old 29-10-2010, 10:12 PM
avandonk's Avatar
avandonk
avandonk

avandonk is offline
 
Join Date: Aug 2005
Location: Melbourne
Posts: 4,786
I am sorry if I have missed something here. You are discussing stacking with on the fly averaging?

I thought it was upsizing!

See I am a silly old bunt!

Bert
Reply With Quote
  #12  
Old 29-10-2010, 10:19 PM
rat156's Avatar
rat156
Registered User

rat156 is offline
 
Join Date: Aug 2005
Location: Melbourne
Posts: 1,696
Quote:
Originally Posted by avandonk View Post
I am sorry if I have missed something here. You are discussing stacking with on the fly averaging?

I thought it was upsizing!

See I am a silly old bunt!

Bert
The B-Spline kicks in with the image align calculations, as these are sub-pixel calculations, they require image resampling I think?

Cheers
Stuart
Reply With Quote
  #13  
Old 29-10-2010, 10:23 PM
avandonk's Avatar
avandonk
avandonk

avandonk is offline
 
Join Date: Aug 2005
Location: Melbourne
Posts: 4,786
Now we have a totally different problem.

I have noticed that RegiStar is very good a stacking noise. It will distort to put a bit of noise on noise.

I use IP to correct for darks and flats.

I then use DSS to stack the images. With a bit of noise rejection.

Seems to work OK.

Bert
Reply With Quote
  #14  
Old 29-10-2010, 10:27 PM
Moon's Avatar
Moon (James)
This sentence is false

Moon is offline
 
Join Date: Oct 2008
Location: Melbourne
Posts: 1,158
Quote:
Now we have a totally different problem.
I have noticed that RegiStar is very good a stacking noise. It will distort to put a bit of noise on noise.
Don't worry - I just noticed CCDStack does EXACTLY the same thing! It's amazing what you notice if you look carefully enough! I'm shattered.
James
Reply With Quote
  #15  
Old 30-10-2010, 01:41 AM
Moon's Avatar
Moon (James)
This sentence is false

Moon is offline
 
Join Date: Oct 2008
Location: Melbourne
Posts: 1,158
I did a quick test with a stack of 9 images.
As expected, data rejection works better after using nearest neighbor interpolation for the stacking when compared to Bicubic B-Spline.
Although the Bicubic version seems smoother (image 1) than the nearest neighbor version (image 2) , I think this is just because it has been blurred a bit. When I added a Gaussian blur to the nearest neighbor version (image 3) it looked better than the Bicubic B-Spline version to my eye.

The video is a bit hard to follow but it compares the Bicubic B-Spline vs. the non blurred nearest neighbor. LINK
James
Attached Thumbnails
Click for full-size image (1.jpg)
47.6 KB34 views
Click for full-size image (2.jpg)
58.5 KB38 views
Click for full-size image (3.jpg)
51.0 KB36 views
Reply With Quote
  #16  
Old 30-10-2010, 08:32 AM
iceman's Avatar
iceman (Mike)
Sir Post a Lot!

iceman is offline
 
Join Date: Sep 2004
Location: Gosford, NSW, Australia
Posts: 36,799
Enough talk about the thread that wasn't.

Keep it on topic and no personal attacks please.
Reply With Quote
  #17  
Old 31-10-2010, 09:55 AM
Bassnut's Avatar
Bassnut (Fred)
Narrowfield rules!

Bassnut is offline
 
Join Date: Nov 2006
Location: Torquay
Posts: 5,065
Quote:
Originally Posted by Moon View Post
I did a quick test with a stack of 9 images.
As expected, data rejection works better after using nearest neighbor interpolation for the stacking when compared to Bicubic B-Spline.
Although the Bicubic version seems smoother (image 1) than the nearest neighbor version (image 2) , I think this is just because it has been blurred a bit. When I added a Gaussian blur to the nearest neighbor version (image 3) it looked better than the Bicubic B-Spline version to my eye.

The video is a bit hard to follow but it compares the Bicubic B-Spline vs. the non blurred nearest neighbor. LINK
James
That is very interesting, Ill give that a try too.
Reply With Quote
  #18  
Old 05-11-2010, 07:03 AM
gregbradley's Avatar
gregbradley
Registered User

gregbradley is offline
 
Join Date: Feb 2006
Location: Sydney
Posts: 18,183
I remember a post I think its from PHD site about these 2. Nearest neighbour in that comparison seemed to be superior.

One problem I have had recently is I get some hot red blue and green pixels near the end of image processing. Sometimes black spots in Ha images.

I haven't always had this. I am wondering is it time to take fresh darks, or is it my change to CCDStack 2 versus CCDstack. Nearest neighbour is now an option in CCDstack 2 and I don't think it was available in CCDStack.

Opinions?

Greg.
Reply With Quote
  #19  
Old 05-11-2010, 08:15 AM
multiweb's Avatar
multiweb (Marc)
ze frogginator

multiweb is offline
 
Join Date: Oct 2007
Location: Sydney
Posts: 22,079
Quote:
Originally Posted by gregbradley View Post
I remember a post I think its from PHD site about these 2. Nearest neighbour in that comparison seemed to be superior.
Data rejection will work better if you register with nearest neighbor.

Quote:
Originally Posted by gregbradley View Post
One problem I have had recently is I get some hot red blue and green pixels near the end of image processing. Sometimes black spots in Ha images.

I haven't always had this. I am wondering is it time to take fresh darks, or is it my change to CCDStack 2 versus CCDstack. Nearest neighbour is now an option in CCDstack 2 and I don't think it was available in CCDStack.
Hot/cold pixel then impute/interpolate will take care of those residual specks. Nearest Neighbor was already available in previous versions of CCD Stack. That's the registration algo I've always been using.
Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +10. The time is now 03:34 AM.

Powered by vBulletin Version 3.8.7 | Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Advertisement
Bintel
Advertisement