fix curve application
This commit is contained in:
		
							parent
							
								
									55ef1ee471
								
							
						
					
					
						commit
						7682906fb8
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		|  | @ -289,9 +289,12 @@ int perfromOperation(int operation, char** fileNames, const Config& config) | ||||||
| 			return -1; | 			return -1; | ||||||
| 		} | 		} | ||||||
| 		 | 		 | ||||||
| 		cvtColor(inImages[0], inImages[0], cv::COLOR_BGR2GRAY); | 		if(inImages[0].channels() > 1) | ||||||
|  | 			cvtColor(inImages[0], inImages[0], cv::COLOR_BGR2GRAY); | ||||||
|  | 		if(inImages[0].type() != CV_32FC1) | ||||||
| 		inImages[0].convertTo(inImages[0], CV_32F); | 		inImages[0].convertTo(inImages[0], CV_32F); | ||||||
| 		 | 		 | ||||||
|  | 		Log(Log::DEBUG)<<"applyCurve"; | ||||||
| 		applyCurve(inImages[0], curve); | 		applyCurve(inImages[0], curve); | ||||||
| 	} | 	} | ||||||
| 	else if(operation == CREATE_CURVE) | 	else if(operation == CREATE_CURVE) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue