sibarrick Posted September 3, 2008 Share Posted September 3, 2008 Has anyone here with more compositing/signal processing experience got any ideas about how to solve this.... I have a bunch of grey scale 16bit image data that comes from a CT scanner. The problem is that the brightness varies from frame to frame and I need it to be consistent. I can probably fix it manually but its going to be very time consumming. I've tried using the equalize cop but it doesn't do the job I need. If I look at the histogram for each frame they pretty much have the same envelope with 3 peaks, one near 0, and the other 2 about mid way up. Basically what I'm looking for is a automatic way of aligning those peaks across all frames (at least I think that is what I want) Anyone got any clever ideas about how to achieve that? Quote Link to comment Share on other sites More sharing options...
Jason Posted September 3, 2008 Share Posted September 3, 2008 Just to be boring, I have got to ask - have you tried any of the Flame or AE (maybe even Shake or Nuke) de-flicker plugins out there? (Evidently your data can be visualized directly as images, right?) Quote Link to comment Share on other sites More sharing options...
sibarrick Posted September 3, 2008 Author Share Posted September 3, 2008 It's all 16 bit pngs. CT data looks a bit like an xray I guess. Bone shows up white and softer tissues grey, with empty space black, hence the 3 peaks in the data. I have access to AE but nothing else. Can't remember seeing a normalising function in there, but then I know next to nothing about compositing. I'll take a look. Quote Link to comment Share on other sites More sharing options...
michael Posted September 3, 2008 Share Posted September 3, 2008 you could use the Equalize compositing node... from the help: operation > Equalize Luminance Across Frames - The global luminance is computed for several frames around the current frame. The current frame Quote Link to comment Share on other sites More sharing options...
sibarrick Posted September 3, 2008 Author Share Posted September 3, 2008 As I say, I tried that first but it doesn't seem to do what I want. I've tried all the settings but I don't get the sort of normalisation I need. When I look at the histograms the peaks still move around randomly from frame to frame. Quote Link to comment Share on other sites More sharing options...
sibarrick Posted September 3, 2008 Author Share Posted September 3, 2008 (edited) Actually..... cranking the frames before and after right up seems to be working.... maybe I should have played with it more. Ah.... now I see what is going on. It works for most of the data, but some of it includes some horrible spikes. Which throws out the equalize cop. maybe I can remove those first.... Edited September 3, 2008 by sibarrick Quote Link to comment Share on other sites More sharing options...
Jason Posted September 3, 2008 Share Posted September 3, 2008 Actually..... cranking the frames before and after right up seems to be working.... maybe I should have played with it more. I wonder if it might help or hinder to break the image into luminance bands, running and reassembling might help? Or perhaps performing the correct within a gamma-corrected space? Can the node correct an image based on reference images? Then perhaps you can play about and preprocess the inputs (say, pass filters or blurs, etc) and correct the originals. I am more questions than answers today.. sorry.. Quote Link to comment Share on other sites More sharing options...
michael Posted September 3, 2008 Share Posted September 3, 2008 oooppss...sorry simon...read too quickly.... hmmm...could you play around with clamping the values? Quote Link to comment Share on other sites More sharing options...
sibarrick Posted September 3, 2008 Author Share Posted September 3, 2008 (edited) I'm kinda trying everything you're suggesting, and coming to the same conclusions. If I remove the high end stuff that is burned in then equalize what is left over a fairly broad range of frames that works quite well, unfortunately trying to blend the removed stuff back in is proving a problem at the moment. As Jason says I need a way to make the equalize cop just see the despiked stuff but apply the result to the whole frame, masking doesn't seem to be working for this but I think I need to play with it some more. Its close.... Edited September 3, 2008 by sibarrick Quote Link to comment Share on other sites More sharing options...
michael Posted September 3, 2008 Share Posted September 3, 2008 you need some kind of 'adaptive fit'...or somesuch... Quote Link to comment Share on other sites More sharing options...
crunch Posted September 3, 2008 Share Posted September 3, 2008 I'm kinda trying everything you're suggesting, and coming to the same conclusions.If I remove the high end stuff that is burned in then equalize what is left over a fairly broad range of frames that works quite well, unfortunately trying to blend the removed stuff back in is proving a problem at the moment. As Jason says I need a way to make the equalize cop just see the despiked stuff but apply the result to the whole frame, masking doesn't seem to be working for this but I think I need to play with it some more. Its close.... What if you preprocessed, removing the spikes before equalizing? But, I guess detection of those spikes is tricky? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.