Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

[MBS] Advice on image manipulation techniques (MBS Xojo Plugin Mailinglist archive)

Back to the thread list
Previous thread: [MBS] [ANN] 13.1pr13
Next thread: [MBS] Where is LSOpenFromURLSpec?


Re: [MBS] [ANN] Changes in REAL Studio Project Format   -   Garth Hjelte
  [MBS] Advice on image manipulation techniques   -   William Koperwhats
   Re: [MBS] Advice on image manipulation techniques   -   Christian Schmitz
   Re: [MBS] Advice on image manipulation techniques   -   William Koperwhats
   Re: [MBS] Advice on image manipulation techniques   -   Christian Schmitz

[MBS] Advice on image manipulation techniques
Date: 13.04.13 21:21 (Sat, 13 Apr 2013 13:21:28 -0700)
From: William Koperwhats
Christian,

I would like to add a feature in my software that has the ability to correct for optical vignetting by brightening the outer edges of a photo (actually in my case live video).

My thought is that I would create a dark frame with a circular blurred central white "hotspot" which would be subtracted from the original image using CombineMBS - mode 10 (clipped to 0 counts). The result would be brightened using ChangeCustomMBS (with a positive multiplier and a zero offset). This would then be added back to the original using Combine MBS - mode 5 (max) which should result in the (now brighter) edges showing up with the normal brightness central region.

This just seems like an *awful* lot of computation. I know that there are a bazillion features of the MBS picture class extensions that I am completely unaware of and was wondering if there is a more efficient way of doing this that you could point me toward.

Cheers.

-bill k

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] Advice on image manipulation techniques
Date: 14.04.13 09:45 (Sun, 14 Apr 2013 10:45:43 +0200)
From: Christian Schmitz

Am 14.04.2013 um 00:05 schrieb William Koperwhats <<email address removed>>:

> Unfortunately no, it needs to run on Windows *and* Mac. I've coded up the solution that I mentioned earlier and it seems to work, but was hoping for something more clever.

Okay.
Than use normal plugin methods.
You could put the work in a thread and run several threads, so you process several images at same time.

Than you use MT methods (or ask me to make more) so you really get something like 4 CPUs busy...

Greetings
Christian

Re: [MBS] Advice on image manipulation techniques
Date: 13.04.13 23:05 (Sat, 13 Apr 2013 15:05:57 -0700)
From: William Koperwhats
Unfortunately no, it needs to run on Windows *and* Mac. I've coded up the solution that I mentioned earlier and it seems to work, but was hoping for something more clever.

Cheers.

-bill k

On Apr 13, 2013, at 3:04 PM, Christian Schmitz <<email address removed>> wrote:

>
> Am 13.04.2013 um 22:21 schrieb William Koperwhats <<email address removed>>:
>
>> Christian,
>>
>> This just seems like an *awful* lot of computation. I know that there are a bazillion features of the MBS picture class extensions that I am completely unaware of and was wondering if there is a more efficient way of doing this that you could point me toward.
>
> Mac only? If yes, use CoreImage for best performance.
>
> Greetings
> Christian
>
> --
> Read our blog about news on our plugins:
>
> http://www.mbsplugins.de/
>
> _______________________________________________
> Mbsplugins_monkeybreadsoftware.info mailing list
> <email address removed>
> https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] Advice on image manipulation techniques
Date: 13.04.13 23:04 (Sun, 14 Apr 2013 00:04:06 +0200)
From: Christian Schmitz

Am 13.04.2013 um 22:21 schrieb William Koperwhats <<email address removed>>:

> Christian,
>
> This just seems like an *awful* lot of computation. I know that there are a bazillion features of the MBS picture class extensions that I am completely unaware of and was wondering if there is a more efficient way of doing this that you could point me toward.

Mac only? If yes, use CoreImage for best performance.

Greetings
Christian