NotesWhat is

Notes brand slogan

Notes -

import ;
import ;
import ;
import ;
import ;
import ;
import ;
import ;
import ;

import ;
import ;
import *; // JFrame, ImageIcon;
import ;
import ;
import ;
import ;
import ;

class lab13{

public static void ShowImage(Mat img, String title, I) {
final int START_X_LOC = 0;
final int START_Y_LOC = 0;

MatOfByte matOfByte = new MatOfByte();

H(".jpg", img, matOfByte);
byte[] byteArray = matOfB();
BufferedImage bufImage = null;

try {
InputStream in = new ByteArrayInputStream(byteArray);
bufImage =;
JFrame frame = new JFrame();
().add(new JLabel(new ImageIcon(bufImage)));

if ((locs != null) && (> 0)) {
(locs[0], locs[1]);
} else {

} catch (Exception e) {
public static List<Mat> przesun(List<Mat> lista, int ktory, int zktorym){
List<Mat> listaB = new ArrayList<>();
for(int i= 0; i< (); i++)
(ktory, listaB.get(zktorym));
(zktorym, listaB.get(ktory));

return lista;
static Mat monoHist(Mat obraz, int rozmiar,
float wartoscDln, float wartoscGrn){
List<Mat> images = new ArrayList<>();
C(obraz, images);
MatOfInt channels = new MatOfInt(0);
Mat mask = new Mat();
Mat hist = new Mat();
MatOfInt histSize = new MatOfInt(rozmiar);
MatOfFloat ranges = new MatOfFloat(wartoscDln, wartoscGrn);
boolean accumulate=false;
I(images, channels, mask , hist, histSize,
ranges, accumulate);
return hist;
static void drawHist(Mat hist, String tytul,int hist_w, int hist_h){
int bin_w = (int)M( (double) hist_w/() );
Mat histImage = new Mat( hist_h, hist_w, CvType.CV_8UC3, new
Scalar( 0,0,0) );
C(hist, hist, 0, histI(),
Core.NORM_MINMAX, -1, new Mat() );
for( int i = 1; i < (); i++ ) {
C( histImage,new Point( bin_w*(i-1), hist_h - (int)M((i-1,0)[0]) ),new Point( bin_w*(i), hist_h - (int)M((i ,0)[0]) ),new Scalar(255), 2, 8, 0 );
ShowImage(histImage, tytul);
public static void hist(Mat obraz){
Mat histogram;

histogram = monoHist(obraz,25,0,255);

public static void main(String[] args){

Mat mA = H("C:\inf\ktw\img\");
ShowImage(mA, "kanal");
List<Mat> listaA = new ArrayList<>();
List<Mat> listaB = new ArrayList<>();
C( mA, listaA );
listaB = przesun(listaA, 1,2);

C(listaB, mA);
ShowImage(mA, "poloczony");
//zad 2
Mat mB = H("C:\inf\ktw\img\");
Mat mC = H("C:\inf\ktw\img\");
I(mB, mC, Imgproc.COLOR_BGR2GRAY);
Mat zmieniony = H("C:\inf\ktw\img\");
I(mC, zmieniony);

what is is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, is designed for you. To date, over 8,000,000,000 notes created and continuing...


  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: doesn’t require installation. Just write and share note!

Short:’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: )

Free: works for 12 years and has been free since the day it was started.

You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;

Email: [email protected]




Regards; Team

Shortened Note Link
Looding Image
Long File

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.