Giter VIP home page Giter VIP logo

sfr_calculation's Introduction

  • ๐Ÿ‘‹ Hi, Iโ€™m @RayXie29
  • ๐Ÿ‘€ Iโ€™m interested in ML/DL, quantitive trading
  • ๐ŸŒฑ Iโ€™m currently learning NLP
  • ๐Ÿ’ž๏ธ Iโ€™m looking to collaborate on quant trading project
  • ๐Ÿ“ซ How to reach me [email protected]

Anurag's GitHub stats

sfr_calculation's People

Contributors

rayxie29 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

sfr_calculation's Issues

vector subscript out of range error

If you run the program and have vector subscript out of range error in std::vector<double> OverSampling(cv::Mat &Src, double slope, double CCoffset, int height, int width, int *SamplingLen), you could modify the loop of average the pixel value in 4x sampling data, if the pixel value in pixel is zero, copy the value of close pixel like the following code:

	//average the pixel value in 4x sampling data, if the pixel value in pixel is zero, copy the value of close pixel
	for (i = 0; i < *SamplingLen; ++i) {
		j = 0;
		k = 1;
		if (MappingCount[i] == 0) {

			if (i == 0) {
				while (!j)
				{
					// ADD by jt 2024.1.18 prevent  vector subscript out of range error of MappingCount.
					if ((i+k) >= *SamplingLen) {
						break;
					}
					// -------------------------------------------------------------------------------
					if (MappingCount[i + k] != 0)
					{
						SamplingBar[i] = SamplingBar[i + k] / ((double)MappingCount[i + k]);
						j = 1;
					}
					else ++k;
				}
			}
			else {
				while (!j && ((i - k) >= 0))
				{
					if (MappingCount[i - k] != 0)
					{
						SamplingBar[i] = SamplingBar[i - k];   /* Don't divide by counts since it already happened in previous iteration */
						j = 1;
					}
					else ++k;
				}
				if ((i - k) < 0)
				{
					k = 1;
					while (!j)
					{
						// ADD by jt 2024.1.18 prevent  vector subscript out of range error of MappingCount.
						if ((i+k) >= *SamplingLen) {
							break;
						}
						// -------------------------------------------------------------------------------
						if (MappingCount[i + k] != 0)
						{
							SamplingBar[i] = SamplingBar[i + k] / ((double)MappingCount[i + k]);
							j = 1;
						}
						else ++k;
					}
				}
			}
		}
		else
			SamplingBar[i] = (SamplingBar[i]) / ((double)MappingCount[i]);
	}

About bug

Hello, I would like to know how to solve the problem that the program always prompts the sentence ROI size too small, please re-crop the ROI when drawing the frame. Thank you very much.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.