Using AEGP_IterateGeneric correctly

I am attempting to use AEGP_IterateGeneric to parallelize my processing over all available cores. I'm having trouble handling PF_Interrupt_CANCEL correctly. This is what the end of my iteration callback looks like:
long progress = InterlockedIncrement(&pr->progress);
if(thread_indexL == 0)
   return PF_PROGRESS(pr->in_data, pr->progress, iterationsL);
else
   return PF_Err_NONE;
pr->progress is a shared progress value among all threads. it will reach the progress total when my iteration is done.
This appears to work, when my frame rendering gets really slow a progress bar appears below the output window.
Now, when the user is adjusting a parameter, the pixels that are processed by thread_indexL == 0 turn to garbage frequently (flickering between junk data and my processed pixels.) The rest of the pixels (processed by thread_indexL != 0) are OK.
What is the correct way to implement PF_PROGRESS in IterateGeneric that does not result in artifacts and maintains the expected responsiveness from my plugin?

which format of the image are you trying to threshold. If you want to threshold an RGB image (JPG for ex). Then you have to convert that into a grey scale image (Extract color planes). If you want to threshold a RGB image directly then use "Color thresholding"

Similar Messages

  • I can't activate my iPad and I'm sure i am using the correct apple id and password but when i press net it says it cannot be used to unlock this iPad

    i can't activate my iPad and I'm sure i am using the correct apple id and password but when i press net it says it cannot be used to unlock this

    You can try to figure out which Apple ID/email address and/or password you used to activate it by going to http://iforgot.apple.com
    If you can't, you'll need to contact Apple Account Security with your proof of purchase. 

  • I am trying to restore an ipod to the factory settings. However I get a message that my username or password is incorrect. I am using my correct Apple id and password.  What is the problem, please?

    I am trying to restore an ipod to the factory settings. However I get a message that my username or password is incorrect. I am using my correct Apple id and password.  What is the problem, please?

    Was that Apple ID and password the original owner of the iPod?  If not, try using the Apple ID and password of the original owner.

  • I have a jetpack, and when I try to "connect" to my ipad or phone, it keeps telling me I am not using the correct password.  I have tried everything.  I even changed the password, nothing is working.  Both are 4G, my ipad is an Air and my phone is a Iphon

    I have a jetpack, and when I try to "connect" to my ipad or phone, it keeps telling me I am not using the correct password.  I have tried everything.  I even changed the password, nothing is working.  Both are 4G, my ipad is an Air and my phone is a Iphone 5.  I can get connected to other wifi on these features but not with my jetpack.  Please help, I need to use this feature soon.  Thank you so much

    Chances are you mis-typed a character in the Wifi password and the devices saved that information.  Now whenever you try to connect the device refers to the wrong password and the Jetpack does not accept your connection.  Tell your devices to forget the wireless connection and start over.
    Once you enter the proper WiFi credentials the Jetpack will allow you to connect.

  • Storage values under about this mac displaying incorrectly, but amount of space used IS correct. Any ideas?

    I noticed recently that the "storage" under "about this mac" is displaying incorrectly. It doesn't show the correct values for my photos, videos, and audio files. It classifies this data under "other". I have been searching all over the internet, I went to the Apple genius bar yesterday and they recommended I re-install OSX. I did and it still shows up incorrectly. They were baffled, said they never really came across this issue. I have tried re-indexing spotlight, that didn't seem to help.
    The amount of storage used IS correct. It just doesn't show up under the correct categories in storage, under about this mac. Also, the computer seems to work fine. No real issues. It's a mid 2012 MBP. 500gb hard drive. Most recent OSX is installed.
    I DO NOT think it is local snapshots, cause my backups category is small and the amount of space used and free is correct. I have downloaded omnidisk sweeper to confirm this.
    I have seen a few posts on here and around the web referring to this, but no real answers. I have also reviewed Pondini's info on this to no avail.
    Does anyone have any ideas?!?!

    Also,
    I had installed a version of parallels with windows 7, but deleted it. Would parallels be causing my computer to index incorrectly? I I used appcleaner to delete all the parallels files so I do not have it anymore.

  • 'You Are Not Using The Correct Type of Phone Cord' Error

    Having a issue with my fax on my HP Officejet Pro 8500 wireless.  Tried to send a fax, it  received a send error.  I ran fax test and it came back with "You are not using the correct type of phone cord".  Nothing has changed since I last fax'd but I check the lines and connection, everything appears ok.  Phone jack is connected to 1-line and Officejet '2-ext' is connected to the phone.  I use a dedicated phone # and the Officejet is set to auto answer.   I can call out and receive calls on the phone connect to the Officejet.  My assumption is that since I can use the phone without issue there is nothing wrong with the phone line.  Any ideas?
    This question was solved.
    View Solution.

    I was having the same problem.  I'm using a the 2 wire phone cord provided with the printer and still getting this error.  Turns out that it related to have a phone extension plugged into the printer.  If I unplug the telephone form the extension jack on the back of the printer, then the fax test passes.   I was even using a 2 wire cord on the phone extension but it seems that simply having a telephone plugged into the extension jack will cause this error. 
    Run the test without a telephone plugged into the printer's extension jack and you should be fine.
    Worked for me!

  • I have tried to log in on a web site and this is what I'm gettig: Alert 530 Autentication failed. I have used the correct password and user's name.

    ftp.oxbow.fr This is the file I have log on and I have used the correct password and user's name and this is what comes up:
    Alert 530 Authentication Failed!

    This is a user to user forum. Apple is not here. Apple does not answer questions here.
    iTunes Support -
    http://www.apple.com/support/itunes/
    Mac App Store Support -
    http://www.apple.com/support/mac/app-store/

  • HT203167 I lost my ringtones from my phone when I upgraded to iOS 6 on my iPhone 4.  They are still on my computer, but won't re-transfer back to the phone.  I'm using the correct iTunes account.  How do I get my ringtones back on my phone?

    How do I get my ringtones back on my phone?
    I lost my ringtones from my phone when I upgraded to iOS 6 on my iPhone 4.  The ringtones are still on my computer and play in iTunes, but they won't re-transfer back to the phone.  I'm using the correct iTunes account on both my computer and phone.  In the iPhone view of iTunes on my computer, it shows that my phone recognizes that I had those ringtones, but there is an exclamation mark showing that my phone can't find the files.  I can't delete these "placeholders" from my phone with the hopes of re-transfering the files back to the phone, either.  I cannot just simply re-transfer the files from my computer back to the phone.  It won't let me using the regular synch options and I can't find anything in the menus of iTunes to help me out either.
    Any advice would be much appreciated. 

    Ignore.  I figured it out:)

  • "itunes could not restore the iphone because the password was incorrect" I know for a fact im using the correct password. and it has previously worked. is anyone else having this issue.

    "itunes could not restore the iphone because the password was incorrect" I know for a fact im using the correct password. and it has previously worked. is anyone else having this issue.

    Hi, I also get the message "itunes could not restore the iphone because the password was incorrect" though I am never prompted to enter a password anywhere! Nor was the backup password encrypted to begin with! Really strange, any pointers will be greatly appriciated!

  • G/L account 156116 cannot be used (please correct)

    Dear all,
    When i create a PO from a PR (of Third party sale process), i get an error:
    G/L account 156116 cannot be used (please correct)
    Message no. ME045
    Diagnosis
    Comparison of the field selection strings from the G/L account 156116 and the account assignment category X reveals that there is an incompatible combination of field selections for the field selection group 'CO/PP order'.
    The G/L account field selection is stored in table T004F; that for the account assignment is stored in table T162K.
    Pls give me your suggestion.
    Thanks,

    > G/L account 156116 cannot be used (please correct)
    > Message no. ME045
    Go to FS00 and Select your Account and In Create / Bank / Interest Tab Double Click on Field Status group and Check the Business area Field is Set to Optional Entry. (If its set Dont Change any thing)
    Now Go to OME9 and Select your Account Assignment X and Double Click and Check the Business area is set to Optional Entry. (If its Not Set then Change the Same and Save)
    Logic is Both Business area Settings should be Same.
    Regards,
    Ashok

  • Do I need to use lens correction in lightroom 5 if I have it enabled in camera ?

    Do I need to use lens correction in Lightroom 5 develop module it I have it enabled in camera ? (Canon 5D3)

    Thanks very much John, I noticed when I applied it in LR5 it made a difference, but I guess what I was asking was it being applied twice, and as I shoot in raw you have answered my question, thank you so much.
    Phil.
    Date: Tue, 31 Dec 2013 06:23:10 -0800
    From: [email protected]
    To: [email protected]
    Subject: Do I need to use lens correction in lightroom 5 if I have it enabled in camera ?
        Re: Do I need to use lens correction in lightroom 5 if I have it enabled in camera ?
        created by Tooslow2007 in Lightroom for Beginners - View the full discussion
    Your camera will only apply lens correction (if switched on) to JPEGs, not to RAW files. Clearly you do not want to apply it twice.
    John
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5968950#5968950
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5968950#5968950
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5968950#5968950. In the Actions box on the right, click the Stop Email Notifications link.
               Start a new discussion in Lightroom for Beginners at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • Import Settings, Use error correction

    I just read that the "Use error correction when reading Audio CDs" box in iTunes Import Settings should really be on, (even though it's slower).
    on this page http://www.kenrockwell.com/apple/itunes.htm It's copyright 2006
    Is this really the case?

    Hi
    An up for this topic.
    Always the same question : use correction or not.
    Nobody knows today how this function works (except Apple may be...)
    When error correct is off : in case of problem, Is the player works like a cd player, creating a /making a new information or does he pass many times until having the good information.
    When error correction is on : In case of problem what happend ? does he pass many times (thats why its slower...) until having the good information ?
    The way is having bit perfect at the end even it is long...
    An idea ?

  • HT1212 i havnt changed my passcose and using the same passcode which i have been using since ages , its still not working, and i am 100 percent sure i am using the correct passcode ?

    i havnt changed my passcose and using the same passcode which i have been using since ages , its still not working, and i am 100 percent sure i am using the correct passcode ?.,

    Either way the result is the same... if you forgot (or don't know) your passcode, restore the device from backup on the last computer it was synced with when the passcode was turned on... this will remove the passcode. If you do not have access to the last computer it was synced with, you will have to force it into recovery mode & restore as a new device.

  • Using "Error Correction"

    When importing a CD using “Apple Lossless Encoder” is ok to leave the preference set to “Use error correction when reading Audio CDs”? I know it slows the transfer down but is the quality compromised in any way? Even on pristine CDs?

    I always use the error correction. The optical drive does it's own error correction, but the software takes it one step further. I don't see it reducing the speed of an import by a significant amount. But since you're clearly a major audiophile, it seems like you would rather be safe than sorry and do the error correction no matter how pristine you think your CDs are.

  • In the new IOS 7, my IMessage and FaceTime won't let me log in using the correct Apple ID and password. How can I fix this?

    In the new IOS 7, my IMessage and FaceTime won't let me log in using the correct Apple ID and password. How can I fix this?

    Other users have reported same problem with 4G iPod/iOS 6.1.6 and I have not seen a solution. One user reported yesterday or the day before that it just started working again.

Maybe you are looking for

  • How to enable....

    Ok so I've got a QT movie with the video track enabled, but no audio track, and and ad QT movie with the audio track enabled, but no video track. I'm trying to combine the two. I can't "add" the aduio to the QT picture file because the audio track is

  • Sending IDOC from SAP ECC to SAP MII

    Hello, Issue while configuring. I have configured the RFC Destination in the Netweaver message listener and when i check the connection in SM59 I got  error as timeout during allocate of registered program and I have attached the screenshot of the er

  • NAT type 2 or moderate NEED OPEN OR TYPE 1! PS3

    WRT320N-router model PS3 Ports needed to be opened: TCP:80,81,443,3074,5223 UDP 81,2005,3074,3075,3478,3658 I need these ports opened for my PS3 and some detailed help of how to go about setting that up. please and thank yous

  • Need to update Enddate on Garnishment Doc and G ordr usg BDC in trans PA30

    Hi I have done the Record which changes the end date on the garnishment Doc and Garnishment Order in transaction PA30. But i need to run a program in a batch which will read the data from a flat file and update all the employees above date. Now i got

  • Need an anonymous block for fake update,

    I have a table called sk_a create table sk_a (a number, b date, c varchar2(10)); and an audit table create sk_a_audit (audit_id number, a number, b date, c varchar2(10),dml_action varchar2(4)); and sequence sk_a_audit_seq create sequence sk_a_audit_s