Aquí les dejo unas líneas de coca, digo de cocoa. [Thanks to Paul Franceus from a Remote Village for your help, here I explain some trick to conver a CIImage to NSImage].
Convertir una fuente de imagen CIImage a NSImage
// 1, convertir a NSCIIImageRep
// convert to NSCIIImageRep
NSCIImageRep *imageRep = [NSCIImageRep imageRepWithCIImage:[CIImage imageWithCVImageBuffer:lastFrameCaptured]];
// 2, crear el contenedor de la imagen del tipo NSImage
// create the container to the image of type NSImage
image = [[[NSImage alloc] initWithSize:[imageRep size]] autorelease];
// 3, agregar la representación de la imagen NSCIIImageRep a NSImage
// add the image representation NSCIIImageRep to the image container NSImage
[image addRepresentation:imageRep];
Por cierto, no comprendo ni jota de procesamiento de imágenes. Se supone que haría un tracking de movimiento con una cámara y creía que usar filtros me serviría, pero NOMÁS NO ENTIENDO UN CARAJO: PORQUÉ DIABLOS HAY TANTAS CLASES DE IMPLEMENTACIÓN DE IMÁGENES Y CÓMO DIABLIOS OBTENGO DATOS MÁS INFORMATIVOS DE UN FILTRO QUE LA SOLA IMAGEN PROCESADA.
By the way, I just dont get a damm of anything of this image processing things. Its supposed I have to programn a movement tracking syste with a camera, and believe that the filter programming would help but I JUST DONT GET A DAM: WHY THERE IS A LOT OF IMAGE CLASSES AND HOW THE HELL I GET MORE INFORMATIVE RESULTS FROM FILTERING THAN JUST AN IMAGE.
Por favor, postéenme algo si saben de esto.
Pleas post something If you have answers.
Links:
From a remote village: Cocoa application with custom Core Image filter 5: calling the filter from a Cocoa app.: "Paul Franceus"
http://gigliwood.com/weblog/Cocoa/Core_Image__Practic.html
http://www.ph.tn.tudelft.nl/Courses/FIP/noframes/fip-.html
sábado, 16 de mayo de 2009
Suscribirse a:
Entradas (Atom)