Add 'runall' target.
The ‘runall’ target runs the rotation on different sizes: - 512x512 - 1024x1024 - 3000x3000
This commit is contained in:
		
							parent
							
								
									760d6244d0
								
							
						
					
					
						commit
						c704c14526
					
				
					 2 changed files with 5 additions and 1 deletions
				
			
		
							
								
								
									
										5
									
								
								Makefile
									
										
									
									
									
								
							
							
						
						
									
										5
									
								
								Makefile
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -23,6 +23,11 @@ clean:
 | 
			
		|||
run: all
 | 
			
		||||
	$(BUILD_DIR)/rotation $(IMG)
 | 
			
		||||
 | 
			
		||||
runall: all
 | 
			
		||||
	$(BUILD_DIR)/rotation img/lena_512.pgm
 | 
			
		||||
	$(BUILD_DIR)/rotation img/lena_1024.pgm
 | 
			
		||||
	$(BUILD_DIR)/rotation img/lena_3000.pgm
 | 
			
		||||
 | 
			
		||||
debug: all
 | 
			
		||||
	lldb $(BUILD_DIR)/rotation $(IMG)
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -604,7 +604,6 @@ int main(int argc, char* argv[])
 | 
			
		|||
  Image img(argv[1]);
 | 
			
		||||
  float average = 0.0;
 | 
			
		||||
  int i = 0;
 | 
			
		||||
  cout << "Simple image" << endl;
 | 
			
		||||
  for (double rotation = 0; rotation < 360; rotation += step)
 | 
			
		||||
  {
 | 
			
		||||
    auto const before = chrono::high_resolution_clock::now();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue