Questions tagged [segment]

Segment is an ambiguous tag and one should refrain from using it. It has several, very different, meanings in CS. Please try and pick a more accurate tag for your post.

  • Segmentation (memory), the division of computer memory into segments
  • Image segment created in computer vision
  • String segment, the substring of a pattern delimited by two don't cares or one don't care and beginning or end of the pattern
  • Network segment, a part of a larger computer network
  • A protocol data unit of the transport layer in computing, e.g. TCP segment
625 questions
0
votes
0 answers

Work on a segment of the database

I have a MySQL database which is used by many registered users. I have a stored procedure comprising of about 50 statements. For each statement, I have to add the clause "WHERE USER_ID = 123" to make sure that they act only on the login users. I…
TKLA
  • 3
  • 1
0
votes
3 answers

Using Thresholding for segmentation

I am currently using OpenCV 2.9 on Ubuntu 12.04.03 to perform some sort of threshold-based extraction. So far I performed a threshold threshold( tmp_gray, tmp_bin, 120, 255, CV_THRESH_BINARY ); and morphological operation on source image below. I…
Damilola
  • 1,014
  • 2
  • 20
  • 22
0
votes
2 answers

Google analytics API with segment

I just discovered the segment condition "Date of first visit" in GA. I would like to pull data with this segment from the API but for some reason when i used the Google segment…
tuandroid
  • 11
  • 2
0
votes
2 answers

BCD to 7 segment Decoder

I just started VHDL coding, and right now have to code a BCD to 7 segment decoder. I am doing a Behavioral design(it's required) but right now I am having trouble on how to code the display. I know how to code this decoder with just one input and…
AOE
  • 109
  • 2
  • 7
  • 14
0
votes
1 answer

Share multiple segment with QSharedMemory

i want to use QSharedMemory to share data between 2 applications using it for sharing one segment works perfectly but when i try 2 share more than one i have access just to the last one this my code sharedMemroy.cpp in the first application void…
0
votes
1 answer

Http live streaming segment number

Using HLS to deliver vod content. An HLS variants must have the same count of segments between them or the number of segment may vary from variant to variant?
billfox
  • 1
  • 1
0
votes
1 answer

How to apply a function (some processing steps) only on a specific part of an image in MATLAB?

I have an image X(m by n) and it is sent to a segmentation process. The new image, Y(m by n), contains 9 segments. However, the segments are some random shapes (I mean, they are not square or rectangular). Now I need to apply other algorithms…
0
votes
1 answer

Why empty cells are printed in this code?_Python

I have this code to read text files in a folder, do some analysis on columns and output the new columns. Strangely, I get some last rows deflected from where they should be. I found that changing the segment size, affects the last rows, but couldn't…
PyLearner
  • 239
  • 2
  • 5
  • 11
0
votes
1 answer

how to divide an audio file (mp3 or wav) into smaller ones at silent segments

I have mp3 and wav audio files. I want to divide them into smaller files programmatically. Is there any easy-to-use Java library I can use to process the audio file, seek the silent segments, and divide the file somewhere in a silent segment?
w2know
  • 67
  • 4
  • 13
0
votes
2 answers

C++ Recursive Febonacci Function

Below is my code. I tried to print the Fibonacci recursive function [at the very end] but it gave me segment fault. What is wrong with my code? I spent like 3 hours on this and couldn't figure it out. Can someone please be kind enough to give me…
NewFile
  • 501
  • 5
  • 10
  • 16
0
votes
4 answers

questions with a while loop that has two pointers

I am trying to find duplicate segments in a Java array that was sorted by Arrays.sort(). I am expecting the same ints to form a duplicate segment in the array. For example, after sorting, the array is: {1, 2, 3, 3, 3, 3, 5, 6, 8, 8, 8, 8, 8, 9, 9,…
TonyW
  • 18,375
  • 42
  • 110
  • 183
0
votes
1 answer

codeigniter, how to use url segment to direct to the view

I am a newbee to codeigniter I have a website with three pages. (Home about Contact) I want to put an anchor to each of them and catch last segment using $this->uri->segment() in controller's index function. Then using a switch I want to direct to…
user1427195
  • 43
  • 4
  • 10
0
votes
1 answer

Extending a line to a certain length from 2 points

I am making a platformer game in C++ using SFML and Box2D libraries. The player has a pistol, I'm trying to implement shooting. Box2D has a RayCast function, which needs two positions to check for intersections between. I have the player position…
user1442214
0
votes
1 answer

passing a value to second segment in uri codeignighter

Normally in Codeigniter a url by default has two to three segments like this. http://www.yoursite.com/controller/function My question is, can I replace that function segment for a value if my code is in the index part of the controller. I have a…
zazvorniki
  • 3,512
  • 21
  • 74
  • 122
0
votes
2 answers

how we can add element at the starting of array in every operation and compute sum of any given range.?

You are initially given an array of N integers ( 1<=N<=105 ). Given this array, you have to perform 2 kinds of operations : (i) Operation 1 : Op1( l, r ) You are given 2 integers l and r. ( 1 <= l <= r <= current size of the array ). You need to…