mirror of
				https://github.com/f4exb/sdrangel.git
				synced 2025-10-31 13:00:26 -04:00 
			
		
		
		
	ATV modulator: make OpenCV code objects compatible with OpenCV version in Ubuntu 20.04. Fixes issue #511
This commit is contained in:
		
							parent
							
								
									b04b81816b
								
							
						
					
					
						commit
						9029a7f24f
					
				| @ -316,7 +316,7 @@ void ATVModSource::pullVideo(Real& sample) | ||||
|             		        mixImageAndText(colorFrame); | ||||
|             		    } | ||||
| 
 | ||||
|             		    cv::cvtColor(colorFrame, m_videoframeOriginal, cv::COLOR_BGR2GRAY); | ||||
|             		    cv::cvtColor(colorFrame, m_videoframeOriginal, cv::COLOR_RGB2GRAY); | ||||
|             		    resizeVideo(); | ||||
|             		} | ||||
|             	} | ||||
| @ -443,7 +443,7 @@ void ATVModSource::pullVideo(Real& sample) | ||||
|                         mixImageAndText(colorFrame); | ||||
|                     } | ||||
| 
 | ||||
|                     cv::cvtColor(colorFrame, camera.m_videoframeOriginal, cv::COLOR_BGR2GRAY); | ||||
|                     cv::cvtColor(colorFrame, camera.m_videoframeOriginal, cv::COLOR_RGB2GRAY); | ||||
|                     resizeCamera(); | ||||
|                 } | ||||
| 
 | ||||
| @ -648,7 +648,7 @@ void ATVModSource::applyStandard(const ATVModSettings& settings) | ||||
| 
 | ||||
| void ATVModSource::openImage(const QString& fileName) | ||||
| { | ||||
|     m_imageFromFile = cv::imread(qPrintable(fileName), cv::IMREAD_GRAYSCALE); | ||||
|     m_imageFromFile = cv::imread(qPrintable(fileName), cv::ImreadModes::IMREAD_GRAYSCALE); | ||||
| 	m_imageOK = m_imageFromFile.data != 0; | ||||
| 
 | ||||
| 	if (m_imageOK) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user