Re: Background CIFilter processing?
Re: Background CIFilter processing?
- Subject: Re: Background CIFilter processing?
- From: Tamas Nagy <email@hidden>
- Date: Wed, 05 Nov 2014 07:55:09 +0100
Great, you’re welcome!
Tamas
> On 05 Nov 2014, at 05:55, Carl Hoefs <email@hidden> wrote:
>
> Thanks for the pointers, Tamas! Got it working by using [NSCIImageRep imageRepWithCIImage:] and then [NSImage addRepresentation:]
>
> -Carl
>
> On Nov 3, 2014, at 2:18 PM, Tamas Nagy <email@hidden <mailto:email@hidden>> wrote:
>
>> Well, no Video Input patch is exists with CIFilters, maybe you are talking about Quartz Composer?
>>
>> Anyway, you will need an OpenGL context for the CIFilters, but that should not be a problem - just don’t forget to set the NSOpenGLPFAOffScreen attribute when you will create your NSOpenGLContext instance. Or you can use a CG context too - but that depends on where your image data come from.
>>
>>> On 03 Nov 2014, at 21:48, Carl Hoefs <email@hidden <mailto:email@hidden>> wrote:
>>>
>>> Awesome!
>>>
>>> The only general restriction would be in using something like the Video Input patch, correct? As far as I can tell, that patch needs to render somewhere in real time or it outputs nothing. But my application is only for processing image data in memory.
>>>
>>> -Carl
>>>
>>> On Nov 3, 2014, at 1:37 PM, Tamas Nagy <email@hidden <mailto:email@hidden>> wrote:
>>>
>>>> No, CIFIlters should work fine in background processes.
>>>>
>>>>> On 03 Nov 2014, at 21:29, Carl Hoefs <email@hidden <mailto:email@hidden>> wrote:
>>>>>
>>>>> I’m developing a background daemon server process (Cocoa, OSX 10.10) that will process (analyze, segment, classify) an image sent to it on demand, and then send the processed image back to the client. For some operations, CIFilters would be ideal to use. However, CIFilters require the QuartzCore framework. Doesn't that also imply access to or ownership of the screen or GUI to render? If so, is there an alternate way to implement a background image processor?
>>>>>
>>>>> -Carl
>>>>>
>>>>> _______________________________________________
>>>>>
>>>>> Cocoa-dev mailing list (email@hidden <mailto:email@hidden>)
>>>>>
>>>>> Please do not post admin requests or moderator comments to the list.
>>>>> Contact the moderators at cocoa-dev-admins(at)lists.apple.com <http://lists.apple.com/>
>>>>>
>>>>> Help/Unsubscribe/Update your Subscription:
>>>>>
>>>>> This email sent to email@hidden <mailto:email@hidden>
>>>>
>>>
>>
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden