Ask Your Question

lo's profile - activity

2020-11-01 06:39:20 -0600 received badge  Student (source)
2019-06-01 01:21:23 -0600 received badge  Notable Question (source)
2017-04-19 17:05:44 -0600 received badge  Famous Question (source)
2016-10-06 06:21:59 -0600 received badge  Popular Question (source)
2015-06-16 09:05:58 -0600 received badge  Notable Question (source)
2014-10-13 04:54:42 -0600 received badge  Popular Question (source)
2013-11-08 04:21:13 -0600 commented answer stack of images tif with C++ & OpenCV

Wow, I am so sorry, I just saw the link below your answer, I don't know why I didn't see it the other day. Thank you very much for your help!!

2013-11-07 07:28:09 -0600 received badge  Self-Learner (source)
2013-11-07 06:24:31 -0600 commented answer stack of images tif with C++ & OpenCV

Thank you for your help, I think it is a very good idea! But I don't know how to load the tiff file in a buffer, I am only able to read the first slide, it is like the other 41 slides do not exist, which function should I use to read the whole multiframe image? I am new with image processing...

2013-11-07 06:19:40 -0600 answered a question Problem using CLAHE opencv c++

I got it. Finally it was a problem with the OpenCV compilation. My libraries were not properly located. I just did the compilation process again and now it works.

2013-11-06 05:16:52 -0600 asked a question stack of images tif with C++ & OpenCV

Hello,

I am working with stacks of images in tif format. I am programming in C++ and I have 42 slides stored in one tif file. I am trying to read the file with "imread" but it only reads the very first image of the stack.

I would like to know if there is some possibility to read the whole stack with OpenCV or, in other case, I would appreciate any advice on how to read it.

Thank you for your help.

2013-10-29 06:39:32 -0600 commented question Problem using CLAHE opencv c++

clahe.cpp:19:32: error: ‘createCLAHE’ was not declared in this scope

Ptr<CLAHE> clahe = createCLAHE();

clahe.cpp:20:6: error: base operand of ‘->’ is not a pointer

clahe->setClipLimit(4);

clahe.cpp:23:6: error: base operand of ‘->’ is not a pointer

clahe->apply(m,dst);

That's all, sorry for the inconvenience! The thing is that it does not understand CLAHE, but I do not know how to declare it in order to use the function gpu::CLAHE::apply...

2013-10-29 06:04:05 -0600 commented question Problem using CLAHE opencv c++

clahe.cpp: In function ‘int main(int, char**)’:

clahe.cpp:19:5: error: ‘CLAHE’ was not declared in this scope

Ptr<CLAHE> clahe = createCLAHE();

2013-10-29 06:03:28 -0600 commented question Problem using CLAHE opencv c++

clahe.cpp:11:11: error: ‘cv::CLAHE’ has not been declared

using cv::CLAHE;

2013-10-29 06:03:00 -0600 commented question Problem using CLAHE opencv c++

Ok, sorry, I am having problems with the editor, I will try it again with the errors (one by one):

2013-10-29 05:26:19 -0600 commented question Problem using CLAHE opencv c++

And the opencv version is 2.4.6.0

2013-10-29 04:28:15 -0600 asked a question Problem using CLAHE opencv c++

Hi there!

I am using Opencv for C++ to translate some algorithms from Matlab. I am trying to use gpu::CLAHE::apply because it seems to be so similar to "adapthisteq" in Matlab. The point is that I am not able to use it since the compilator does not recognize anything about CLAHE.

I am sure I am doing something wrong, but I have tried a thousand different ways and it does not work. My last attempt is this:

#include <opencv2/opencv.hpp>
#include "opencv2/imgproc/imgproc.hpp"
#include <string>
#include <iostream>
#include <cstdlib>
#include "cxcore.h"


using namespace cv;
using namespace std;
using cv::CLAHE;


int main( int argc, char** argv )
{
Mat m= imread("lena.png",CV_LOAD_IMAGE_GRAYSCALE); //input image
imshow("lena_GRAYSCALE",m);

Ptr<CLAHE> clahe = createCLAHE();
clahe->setClipLimit(4);

Mat dst;
clahe->apply(m,dst);
imshow("lena_CLAHE",dst);

waitKey();
}

Thank you very much in advance!!