Xojo Conferences

[MBS] Simple GraphicsMagic plugin question... (MBS Xojo Plugin Mailinglist archive)

Back to the thread list
Previous thread: [MBS] [ANN] MBS Xojo Conference 2016 in Koblenz, Germany
Next thread: [MBS] Error code -60031 with AuthorizationMBS

Re: [MBS] FolderChangedNotificationMBS   -   Garth Hjelte
  [MBS] Simple GraphicsMagic plugin question...   -   William Koperwhats

[MBS] Simple GraphicsMagic plugin question...
Date: 12.01.16 03:47 (Mon, 11 Jan 2016 18:47:02 -0800)
From: William Koperwhats
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.


- 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 address removed>