OpenCV and iOS - Getting started - iphone

I am new to iOS development and apologies for a basic question. I am trying to convert an image to grayscaled and threshold it using openCV in iOS. So far, I have imported and setup the framework on xcode. What I am trying to do now is to implement the following features:
http://www.youtube.com/watch?feature=player_embedded&v=Ko3K_xdhJ1I
at 0:24 and 0:53
I tried to follow the tutorial which points to the above youtube video :
http://docs.opencv.org/doc/tutorials/ios/image_manipulation/image_manipulation.html
and wasn't sure where to paste the above code and in which file?
Many thanks.
Kind Regards.

These are helper methods and best written in a separate file. Quite simply,
http://answers.oreilly.com/topic/631-how-to-get-c-and-objective-c-to-play-nicely-in-xcode/
Put all that image manipulation code in say ImageManipulationHelper.mm and create a header file for the same
Create a nice little category for UIImage.
http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/CustomizingExistingClasses/CustomizingExistingClasses.html
which can call these methods in turn to create any image manipulation you might want.
Easy does it. And yeah, read up a bit more on using C++ in objectiveC, if you get into trouble and also about categories. They are some of the niftier features of objectivec

I achieved the same,using the help of this awesome link
Let me know if you need any further help.
Cheers!!
Edit :
Check this out ImageFiltering

Related

Save images for my web server in SPIFFS on esp32-S2

Hi it's my first time using esp32-S2 because now its not recommended to use esp32. I'm looking for saving images in SPIFFS for my web server. In esp32 i used to use esp32fs plugin (https://github.com/me-no-dev/arduino-esp32fs-plugin) but it doesn't work for esp32-S2. I would like to know if there is any plugin like esp32fs and if not how can i save my images (I'm using arduinoIDE 1.8.19). I've been searching but i didn't found anything. Any orientation is welcomed. Thank you for your time and assistance.
You can try my ESP32_FSWebServer_DRD or ESP_FSWebServer example of ESP_WiFiManager library
Follow the instructions in ESP_FSWebServer Example
You can use either deprecated SPIFFS or the better LittleFS

how to add haru library to Xcode 4.1 project

i recently find haro library for pdf generation and i get a iPhonepdf sample from https://github.com/akisute/iPhonePDF, the sample works fine but actually i could nt use the library in my project, i do step by step as http://kishorek.com/?s=pdf&searchsubmit= said, but finally i got error :
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-gcc-4.2 failed with exit code 1
is there anyone to use it before to help ...
thanks in advance
Do you only want to use haru library?? If it is not really needed.. then below link is really good for generating any type of PDFs. Also manipulating functions inside this link is really easy.. And integrations is also too easy without any additional framework and also fast.... Please follow the link
http://www.ioslearner.com/generate-pdf-programmatically-iphoneipad/

iphone paint application

is there any complete source code available for developing a image editing,paintng application in iphone???if anyone knows plese help me
thankzz
GLPaint, available from Apple...
http://developer.apple.com/library/ios/#samplecode/GLPaint/Introduction/Intro.html%23//apple_ref/doc/uid/DTS40007328-Intro-DontLinkElementID_2
Berkeley had a hw assignment. Students submitted them via wiki so maybe look at those?
http://vis.berkeley.edu/courses/cs160-sp10/wiki/index.php/Individual_Programming_Assignment_3
There is an application named TouchPainter and its source code is available. It contains drawing, color blending, Undo/Redo (Amazing..!!), Save/Open drawings..
Note : It may require very deep level knowledge of Objective C. The whole application's source code is explained in this book "Apress.Pro.Objective-C.Design.Patterns.for.iOS.Mar.2010" available and source code is also available here :
http://www.apress.com/apple-mac/objective-c/9781430233305
I hope it will be helpful to you.. :) Good luck..

iPhone, OpenCV and CvBlobDetector

I found Yoshimasa Niwa's article about blob detection here:
http://niw.at/articles/2009/03/14/using-opencv-on-iphone/en
And something on realtime face detection here:
http://www.morethantechnical.com/2009/08/09/near-realtime-face-detection-on-the-iphone-w-opencv-port-wcodevideo/
But what I really want to do is realtime blob detection (like http://www.youtube.com/watch?v=LIgsVoCXTXM) using the iPhone 4 camera.
I can find the headers for CvBlobDetector in cvvidsurv.hpp. But trying to use that without modification is not the right thing to do.
How do I get CvBlobDetector to work? Or is there an alternate solution?
Make sure you've followed the instructions to use it properly:
http://opencv.willowgarage.com/wiki/cvBlobsLib
One of the alternative solutions i used and it works good is:
http://code.google.com/p/cvblob/

Core Plot label not showing

I downloaded library coreplot and I tried the example in this tutorial: http://www.switchonthecode.com/tutorials/using-core-plot-in-an-iphone-application.
I have two problem:
1) When I compiled example i don't have error and warning but label of example not showing.
2) inside the tutorial the command axisSet.xAxis.axisLabelOffset = 3.0f; give me a error " error: 'axisSet' undeclared (first use in this function)".
What is the problem?
is very important for me a speed reply thank you all :)
best regard
That tutorial is very useful for adding Core Plot to an iPhone app, but the example plots are out of date. If you look into the comments, there is some updated the code, but that may even be out of date.
I would recommend looking at the example apps included with the Core Plot framework. Also, I have been able to find some answers by digging through the documentation (after building it).
EDIT:
Refer to this: