Christian, et. al.,

I am in the process of switching over to the GraphicsMagic plugin for much of 
the image manipulation in my astronomical video camera control software so that 
I can perform 16-bit image calculations. One of the features that I have 
implemented in the past (using an array of standard “pictures") is image 
“stacking”. I should be able to duplicate this functionality using the 
GMImageArrayMBS class. Frame “averaging” works exceptionally well using the 
averageImages method of the GMImageArray class, but there is no equivalent 
“summing” function. According to what I have been able to discern (from the GM 
documentation) the following *should* work, but it doesn’t ever return anything 
brighter than a single image. 

Am I missing something obvious? Any suggestions would be appreciated. 

Cheers.

- bill k


‘The following is a “global” property and is being populated with individual 
image frames:

StackingFrames As GMImageArrayMBS 

Using the “averageImages” method is working exactly as expected. Here’s the 
code that *should* produce a “summed" image:

  Dim i As Integer
  Dim n As Integer
  Dim stackedImage As GMImageMBS
      
  n = StackingFrames.Size
  stackedImage = StackingFrames.Image(0)

  If n > 1 Then
    For i = 1 To n - 1
      stackedImage.Composite(StackingFrames.Image(i), 0, 0, 
GMImageMBS.PlusCompositeOp)
    Next i
  End If
  
  Return stackedImage.CopyPicture
    
    

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to