Code Monkey home page Code Monkey logo

ofxcoreimage's Introduction

Hello!

My name is Blair Neal and I'm a creative technologist based in NYC.

I enjoy writing about many topics related to creative technology in the professional space and sharing as much as I can about what I learn. Find more here.

Formerly, from 2010 to 2020, I was the Chief Creative Technologist at Fake Love, an experiential agency that was owned by the New York Times. You can read more about Fake Love here

ofxcoreimage's People

Contributors

laserpilot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ofxcoreimage's Issues

Doesn't work in OF 0.9.0/OSX 10.11

I have been able to get the examples to compile and run, but there is something beyond my grasp going on with 0.9.0 and the renderer - the images are just showing as black. This may have to do with 10.11 as well. Tried updating some code from Albee's examples to see if deprecated GLUT window is the culprit, but haven't found it yet. Running without glut window causes a crash because a texture doesn't get passed to a CIImage properly.

convoluted api?

Why does the api look so complicated,it is not possible to design one like this?

class ofxCIFilter {
public:
    ofxCIFliter();
    ~ofxCIFliter();
    // in place processing
    virtual void apply(ofImage &image) = 0;
    // out of place processing
    virtual void apply(ofImage &dst,const ofImage &src)= 0;
};

class ofxCIBlur:public ofxCIFilter{
public:
    void setRadius(float r);
    apply(ofImage &image);
    apply(ofImage &dst,const ofImage &src);
private:
    float radius;
};

I looked at the reference for Core Image, and it should be easy to convert between ofImage and CoreImage, there is a function in CIImage that looks like this:

initWithData:options:

and there is one in CIContext that looks like this

render:toBitmap:rowBytes:bounds:format:colorSpace:

Using these 2 functions conversion between ofImage and CIImage should be possible.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.