Pallavi Vaish

Greenhorn
+ Follow
since Dec 04, 2015
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Pallavi Vaish

Swastik Dey wrote:Is it mandatory to use the third party open cv lib?



Actually the algorithm that I have implemented that requires OpenCV library.
8 years ago

Karthik Shiraly wrote:Are you asking how to show an image in that confirmation dialog?
If so, you need a custom layout for the dialog as explained in the dialog guide.



I want to show the same image that is selected (eg. n1.jpg in snapshot attached) on browsing, with the dialogue box shown, so as to make sure that one has selected the correct image(as required in app).
8 years ago
Hello,
I'm working on an Android app using OpenCV library. In this I want to see the image on browsing with the confirmation dialogue box. I'm attaching the image.
In this image, with the dialogue box I want to see the selected image also. How can I do this?
I read some posts regarding this but I didn't get exactly how to do this, so I'm posting it again.
Please help!
8 years ago
Solved!!
Thank you all for your replies!!
8 years ago
I guess my question is not clear to anyone. To be very precise and clear, I want to find the sum of all the pixel values of a gray image for which I need to first access all pixel values. The gray image is of "Mat" data type. How can I do that? Please give an example if possible. Thank you!
8 years ago

Piet Souris wrote:hi Pallavi,

welcome!

what kind of image is this Gray_image? The method 'get(x,y)'
is unfamiliar to me.

Could it be that get(j, i) should be get(i, j)?



Hello Piet,

Thank you.

Gray_image is that portion that I extracted from the original image. Here I have used .get(x,y) to access the pixels of the Gray_image. And it's get(j,i) not get(i,j) because the outer loop is for j. It's just the variable name so I don't think order here really matters. I wanna ask that am I doing correct for accessing pixel? Please tell the way if I'm wrong. Thank you.
8 years ago
Hello, I'm writing a code in java. In which, firstly, I need to select a particular portion of an image (Gray Image) based on some criteria and then I've to find the sum of all the pixel values of the selected portion. I am able to extract the required portion. But I'm getting stuck at finding sum. My code is as follows:


Error:: ArrayIndexOutOfBoundsException at line:: sum = sum + d[l][/color]

Please help me.
8 years ago