Ask Your Question

sarjoondeen's profile - activity

2018-07-24 04:09:58 -0500 received badge  Notable Question (source)
2017-12-14 03:04:39 -0500 received badge  Popular Question (source)
2016-03-29 02:52:21 -0500 asked a question Thumb detection application in OpenCV

Hi team,

Just want to know whether any application to do THUMB DETECTION has been done using OpenCV source If anything is done, can you guys please share the link

Thanks in advance, Sarjoon.

2015-10-16 06:35:41 -0500 commented answer how to remove strong reflections

Hey.. did u tried and got the result to remove the reflection. I didnt quite understand this S and V histogram build.so it will be helpful if u have done it already

2015-09-30 05:19:59 -0500 received badge  Scholar (source)
2015-09-30 05:16:43 -0500 commented answer Filling a dynamic model

Thanks for the code . But the problem is whatever you are seeing their in the image is not the actually 255(white) and 0(black). There are different intensities in that range staring from 20 to 200 is there.

For that how we will get a reference value. how can we do that ?

2015-09-24 06:51:01 -0500 commented question HSV value of a RGB pixel

Thanks for the answers.. I understood how it works in Opencv.. Cheers :)

2015-09-23 02:46:55 -0500 asked a question HSV value of a RGB pixel
  1. Original.jpg

  2. HSV.jpg

The first image is the orginal BGR image and second (HSV.jpg) is the HSV color converted image

I opened the original image in GIMP editor and I checked the coordinate (300,300) and in that coordinate following values I found B:74 G:70 R:75 H:312 S:7 V:29

Then the same coordinate (300,300) when I checked in HSV converted image (HSV.jpg) I didn't find these "312,7,29" HSV values instead I found its RGB value.

I know that opencv doesn't display as HSV values, but then through what ways I will be able to get the HSV value of that particular coordinates(300,300) RGB pixel.

I thought conversion of BGR2HSV will do that and will give that values(312,7,29) but it didn't give those values Please help me understand with this.

Thanks in Advance Sarjoon.

2015-09-21 00:43:21 -0500 received badge  Enthusiast
2015-09-18 09:54:16 -0500 commented question Filling a dynamic model

Yes you got the point. If i merge, those black pixels will also will come.

I dont want that. Those black pixels are the defects on the kiwi fruit layer which I want to remove from the model. I want to fill those defect pixels with the surrounding non-defect pixels, so that it will create a ideal model with only non-defect pixels (Refer model.jpeg, some thing like that I need)

2015-09-18 08:19:43 -0500 received badge  Student (source)
2015-09-18 02:55:10 -0500 commented question memory management of Mat

Thanks For you reply.. I get it now..

2015-09-18 02:38:53 -0500 received badge  Editor (source)
2015-09-18 02:37:53 -0500 asked a question Filling a dynamic model

Hi all,

I am working a project where I have to create a dynamic model for the received input image. This is the input image kiwi_defect.jpeg

I have create a dynamic model using Convex Hull This is the model [ContourImageModel.jpg]

ContourImageModel.jpg

I want to fill the model with respective to of the original image Thing is I need to compare the convexhull model with original image and need to fill the pixels except that the black area in the the original image need to be filled with the surrounding white pixels. Like this image [model.jpeg] [model.jpeg](/upfiles/14425619881537103.jpeg)

And I have a problem in filling it in that manner. Please help me in this. Is this any function is there in opencv which will help me to compare the neighbouring pixels and fill the current pixel.. ?

I know that this requires some analytical thinking and knowledge which I am lagging at. And I know there is median filter, flood fill functions which I think its not a proper way to fill.

So please guide me in this.

  1. kiwi_defect.jpeg

  2. ContourImageModel.jpg

  3. model.jpeg

Thanks in Advance

Regards, Sarjoon.

2015-09-10 10:12:21 -0500 asked a question Seg fault comes when trying to access Mat through Dynamic Memory allocation

In my application I am doing something like declaring a Mat variable inside a Structure in my main.h file like

struct image_proc { Mat image; };

In my main.cpp function I declared a pointer object for that structure and allocate dynamic memory for that

struct image_proc *obj;

int main() { obj = (struct image_proc )malloc(sizeof(struct image_proc)) /Calling a function "processing with the structure handle" */ processing(obj); }

void processing(struct image_proc handle) { / Trying to access image variable for some operations / handle->image = /operation*/ -> Seg fault comes when I try to access this variable "image"

}

Why I am getting core dump when I try to access the image through pointer I cannot access the image when I do dynamic memory allocation

But when I do static memory allocation. I can able to access the variable and can I do whatever I want to do with that Why its only failing If i do dynamic allocations.

I know that Mat will do automatic memory allocation and de-allocation. I want to pass that through structure and experiment but its getting failed

Please help me with this.

Regards, Sarjoondeen.

2015-09-10 10:12:21 -0500 asked a question memory management of Mat

I read in the below link about the Mat variables about how it allocates and deallocates memory http://docs.opencv.org/doc/tutorials/...

In the link, its mentioned that Mat is that you no longer need to manually allocate its memory and release it as soon as you do not need it

What I don't understand it how and exactly when it will de-allocate the memory of a Mat.

Suppose I am running my Opencv Application.

Whether it will de-allocate its memory when I exit the running Application(when I press Ctrl+C)

Please clarify me on this.

Thanks in advance Sarjoondeen.